rename_mailbox
Rename a mailbox, folder, or Gmail label, or move it inside another using a slash path; messages and nested mailboxes move with it.
Instructions
Rename a mailbox (a folder, or a Gmail label), or move it inside another (to with "/"), on its mail server, with every message and the mailboxes inside it. As with delete_mailbox, the first time in an account a window on the Mac asks the user for its password. Never an account's inbox, sent mail, drafts, trash or junk, nor the provider's own folders. Undo renames it back.
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": {
"mailbox": "<mailbox>",
"to": "<to>"
},
"name": "rename_mailbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Its new name ("Factures 2026"), kept where it is; or, with "/", its whole new path as Mail would show it ("Archives/Factures"), to put it inside another mailbox. | |
| account | No | Its account, when the name exists in several accounts. | |
| mailbox | Yes | The mailbox to rename: its name or path, as list_mailboxes or Mail shows it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| account | Yes | ||
| mailbox | Yes | As Mail shows it. | |
| on_server | Yes | Its path on the server. | |
| undo_token | No | Give it to undo to take the change back. |