Read workspace
read_workspaceList files in a workspace or retrieve a file's content by path, excluding node_modules and .git, with sorted listings for consistent inspections.
Instructions
Lists the files in a workspace, or returns the contents of one file when path is given. node_modules and .git are excluded from listings. Listings are sorted, so repeated calls match.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspaceId": "<workspaceId>"
},
"name": "read_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Workspace-relative file path. Omit to list all files. | |
| workspaceId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| files | No | ||
| contents | No |