imap_rename_mailbox
Rename an IMAP mailbox or folder to a new name, optionally targeting a specific account.
Instructions
Rename a mailbox/folder
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_name": "<from_name>",
"to_name": "<to_name>"
},
"name": "imap_rename_mailbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_name | Yes | New mailbox name | |
| from_name | Yes | Current mailbox name | |
| account_id | No | Account identifier (defaults to `"default"`) | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool-specific data payload | |
| meta | Yes | Execution metadata (timestamp, duration) | |
| summary | Yes | Human-readable summary of the operation outcome |