File Explorer
ACTIONWeb-based file explorer for browsing the workspace directory structure and viewing file contents with syntax highlighting. Read-only.
Endpoints
· 3GET/File explorer web UI — sidebar tree with collapsible folders and code viewer panel with syntax highlighting via highlight.js
Input Schema
{
"type": "object",
"properties": {},
"additionalProperties": false
}GET/api/treeReturns the full recursive directory tree from the workspace root. Folders include children array, files include size and extension.
Input Schema
{
"type": "object",
"properties": {
"dir": {
"type": "string",
"description": "Relative path from workspace root. Defaults to empty string (workspace root)."
}
},
"additionalProperties": false
}GET/api/fileReturns file contents, detected language, size, and path. Read-only access restricted to workspace root.
Input Schema
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"description": "Required. Relative path from workspace root to the file."
}
},
"additionalProperties": false
}✦