update_message
Modify email message state in one call—mark read/unread, flag/unflag, restore from trash, or move to/from a folder. Pass only fields to change.
Instructions
Update a message's state: mark read/unread, restore from trash, flag/unflag, move to (or out of) a folder. Any combination in one call - pass only the fields you want to change.
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_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Message id, from list_messages or get_thread | |
| read | No | ||
| flagged | No | ||
| restore | No | Pass true to restore a message out of Trash | |
| folderId | No | A folder id to file the message into, or null to remove it from its current folder. Must belong to the same mailbox as the message. |