Rename or move a folder
update_folderRename or move a mailbox folder with its mail and subfolders to reorganize messages; returns the folder’s updated ID for future actions.
Instructions
Rename a folder or move it, with the mail and folders inside. Answers its id from now on, which can change with the name and the place. Other mail programs then find the folder under its new name. To make a new folder, use create_folder. Folders are not deleted by any tool.
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": {
"account_id": "<account_id>",
"folder_id": "<folder_id>"
},
"name": "update_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The new name | |
| parent | No | Folder id or role to move it into | |
| to_top | No | Move it to the top | |
| folder_id | Yes | A folder of that account, by the id list_folders answers | |
| account_id | Yes | The account, by the id list_accounts names |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes |