list_workspace_files
Retrieve and filter files from a workspace by folder, search, trashed, or starred status, with pagination and sorting options.
Instructions
List files in a workspace with filtering, pagination, and sorting options.
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": "list_workspace_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | Yes | The unique identifier of the workspace | |
| folderId | No | Filter by folder ID. Use 'null' or empty for root-level files. | |
| trashed | No | Include trashed files in results | |
| starred | No | Only return starred files | |
| search | No | Search files by name (case-insensitive) | |
| limit | No | Number of files to return (max 100) | |
| offset | No | Number of files to skip for pagination | |
| sortBy | No | Field to sort by | |
| sortOrder | No | Sort direction |