Organize mail thread
organize_mail_threadArchives, marks read or unread, stars or unstars, or labels a mail thread when the person asks. Every change can be undone.
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": {
"workspace": "<workspace>",
"accountId": "<accountId>",
"threadId": "<threadId>",
"action": "<action>"
},
"name": "organize_mail_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | For add_label and remove_label. | |
| action | Yes | ||
| threadId | Yes | Thread id from list_mail_threads or search_mail. | |
| accountId | Yes | Mail account id from list_mailboxes or a thread. | |
| workspace | Yes | Workspace slug from workspaces.list, e.g. "acme". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| done | Yes | ||
| action | Yes | ||
| threadId | Yes |