Update Message
updateMessageSet read/unread status, flag state, and tags on one or more Thunderbird messages, optionally moving them to a folder or Trash.
Instructions
Set read, flagged and tags on one message (messageId) or several (messageIds), and optionally move them (moveTo) or to Trash (trash); deleting for good is deleteMessages. Tags: label or key; others are added or skipped, with a warning. On IMAP, tags set in the same call as a move may not reach the moved copy: use two calls.
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": {
"folderPath": "<folderPath>"
},
"name": "updateMessage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| read | No | Set to true/false to mark read/unread | |
| trash | No | Set to true to move message to Trash. Cannot be used with moveTo. | |
| moveTo | No | Destination folder URI. Cannot be used with trash. | |
| addTags | No | Tags to add, by label or key (e.g. 'Important' or '$label1') | |
| flagged | No | Set to true/false to flag/unflag | |
| messageId | No | A single message ID (from searchMessages). Required unless messageIds is provided. | |
| folderPath | Yes | The folder URI containing the message(s) (from searchMessages) | |
| messageIds | No | Array of message IDs for bulk operations. Required unless messageId is provided. | |
| removeTags | No | Tags to remove, by label or key |