List workspace files
list_filesList paths in the server's workspace. Pass project_id to list only that project's folder (paths come back relative to the project); omit it to list the whole server workspace.
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": {
"server_id": "<server_id>"
},
"name": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_id | Yes | The server's id, as returned by create_server or list_servers. | |
| project_id | No | Optional. List only this project's workspace folder; returned paths are relative to the project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | File paths. | |
| project_id | No | The project the paths are relative to. null for the server workspace root. |