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