rename_folder
Renames a mailbox folder or label by specifying the current and new path. Works for both 'Folders/' and 'Labels/' paths.
Instructions
Rename a mailbox folder or label. Errors if the source path does not exist. Works for both "Folders/" and "Labels/" paths.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "rename_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Current path (e.g. "Folders/Old" or "Labels/Old") | |
| to | Yes | New path (e.g. "Folders/New" or "Labels/New") |