Empty folder
folder_emptyMove the live files in a workspace folder to the trash and leave the folder: folder is its 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": {
"folder": "<folder>"
},
"name": "folder_empty"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters. | |
| folder | Yes | The workspace folder: its id, or its slug with workspaceId. | |
| 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 | ||
| trashed | Yes |