Update folder
folder_updateGive any folder a new slug (newSlug), or set any folder's history (how many earlier versions its files' whole-file updates keep; null follows the workspace; a workspace folder's by its editors), one per call: folder is its id (any kind: personal, team or workspace), or its slug: in workspaceId when given, else in team, else one of your personal folders. The workspace is the folder's own. A workspace folder's change 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_update"
}
}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. | |
| team | No | With a folder slug: the team (slug or id) it belongs to. | |
| folder | Yes | The folder: its id (any kind), or its slug: in workspaceId when given, else in team, else one of your personal folders. | |
| history | No | How many earlier versions whole-file updates of the files in it keep: off, all, or a number from 1 to 100; null follows the workspace (default off). A file's own setting wins. Takes effect at each file's next write; deletes nothing now. | |
| newSlug | No | The folder's new slug. | |
| 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 |
|---|---|---|---|
| folder | Yes |