Empty folder
folder_emptyMove the live files in a workspace folder to the trash and leave the folder: id is the folder's id, or its slug with workspaceId; the workspace is the folder's own. Needs why. expectedWorkspaceRevision is optional: send the folder's workspace revision to refuse (CONFLICT) if it changed since.
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": {
"id": "<id>"
},
"name": "folder_empty"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The workspace folder: its id, or its slug with workspaceId. | |
| why | No | Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters. | |
| workspaceId | No | With a folder slug: the workspace it is in (its id or its slug). | |
| expectedWorkspaceRevision | No | Optional, a workspace folder's: refuse (CONFLICT) if the folder changed since this workspace_revision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kept | Yes | ||
| failed | Yes | Each file not moved, with the refusal code its own delete answers. | |
| trashed | Yes |