Rename a folder
rename_folderChange a Folder's name and nothing else: its Threads, Folders and place stay as they are (move_folder moves it). Needs Can edit and organize. expected_revision is not compared: the last rename wins. A live sibling with the same name answers folder_name_conflict; a Folder in Trash, entity_deleted (restore_folder first). Answers a receipt with the new revision and url; the same operation_id answers it again instead of renaming twice.
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": {
"operation_id": "<operation_id>",
"folder_id": "<folder_id>",
"expected_revision": "<expected_revision>",
"name": "<name>"
},
"name": "rename_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 1–200 characters. | |
| folder_id | Yes | A Folder's id, from list_folders or list_threads. | |
| operation_id | Yes | A new UUID for each write. After a lost answer, send the identical call with the same one, or check get_operation before writing again. | |
| expected_revision | Yes | Its revision from list_threads, get_thread, list_folders or get_note (not a content_revision); not compared. |