Move folder
move_folderRenames a folder or moves it, with everything inside it, under another parent: oldPath is where it is now, newPath where it should be (e.g. /docs/ to /archive/docs/). A same-parent oldPath/newPath is a rename. Only paths change - file content and versions are untouched. title follows newPath's last segment unless you pass one. Fails, moving nothing, if a folder already exists at newPath or newPath is inside the folder itself. Moving into a workspace other than your default needs confirmation - see confirm_token.
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": {
"oldPath": "<oldPath>",
"newPath": "<newPath>",
"workspace_id": "<workspace_id>",
"context": "<context>"
},
"name": "move_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Override the title (otherwise it follows newPath's last segment). | |
| context | Yes | Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization." | |
| newPath | Yes | Destination path of the folder itself (not of its parent), e.g. /archive/guides/. | |
| oldPath | Yes | Current path of the folder, e.g. /docs/guides/. | |
| workspace_id | Yes | Which workspace to act in - a workspace id (whoami returns the id of your default workspace). Required here (no default): this operation cannot be undone. | |
| confirm_token | No | Only when writing into a workspace other than your default: the first call returns a `confirmation_required` result carrying a `confirm_token`; call again with the same arguments plus that token to proceed. |