Update IMAP mailbox settings
update_imap_accountUpdate an IMAP mailbox's connection settings. Only provided fields change; a blank password keeps the stored one. The settings are tested before saving (400 if they do not connect, or if the account is not IMAP), and a successful save sets the account CONNECTED and clears its last error. Only whoever connected the mailbox, or an admin, may change it. Returns the updated account.
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": {
"id": "<id>"
},
"name": "update_imap_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Email account id (UUID from list_email_accounts). | |
| host | No | New IMAP server hostname; omit to keep. | |
| port | No | New IMAP port; omit to keep. | |
| secure | No | true for TLS, false for a plain connection; omit to keep. | |
| password | No | New IMAP password; omit or leave blank to keep the stored one. | |
| smtpHost | No | New SMTP server hostname; omit to keep. | |
| smtpPort | No | New SMTP port; omit to keep. | |
| username | No | New IMAP login username; omit to keep. | |
| displayName | No | New label for the mailbox; omit to keep. |