Rename or move a folder
update_folderRenames a folder (name) or moves it (to: a new slug or parent), with everything under it in one change: every page's route and file, sub folders, collections whose URL folder is inside it, the internal links to all of them, redirects for the published ones and the site plan. dryRun says what would change first. Addresses are lowercase words with dashes, up to 5 folder levels; an address another page, folder or collection uses is refused with address_clash and the reason (a collection's item level, /blog/, belongs to its items unless the collection reserves that slug). Writes unsaved changes the user reviews and saves in Xodia, and the site plan follows in the same change.
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": {
"path": "<path>",
"projectId": "<projectId>"
},
"name": "update_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | A new address: another slug ("what-we-do") or another parent ("company/services"); every page, sub folder and collection under it moves | |
| name | No | A new name (the address stays) | |
| path | Yes | The folder to change | |
| branch | No | Optional branch; default the branch the workspace has open | |
| dryRun | No | Only say what would change; writes nothing | |
| redirect | No | Omit: redirects only for published pages and collections that move; true: for every one; false: none | |
| projectId | Yes | Project id from list_projects |