Rename Folder
rename_folderRename custom email folders or labels to keep your mailbox organized. System folders stay protected from changes.
Instructions
Rename a custom folder or label. Protected system folders cannot be renamed.
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": {
"oldName": "<oldName>",
"newName": "<newName>"
},
"name": "rename_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newName | Yes | New folder path | |
| oldName | Yes | Current folder path | |
| account_id | No | Optional account ID to route this call to (multi-account configs). Omit to use the active account. Configured account IDs are listed in the settings UI (Accounts tab). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| success | Yes | ||
| messageId | No |