hey_set_status
Change an email thread's status: trash (remove from inbox), spam (block sender), restore (recover from trash), unspam (restore from spam).
Instructions
Change an email thread's status. Returns {success, error?}. Trash and spam are reversible via restore and unspam actions respectively. DESTRUCTIVE: trash removes from Imbox, spam blocks the sender. Paper Trail bundles (postingId-only items with no thread) support action=trash only; spam/restore/unspam on a bundle return an explicit error pointing to the bundle's individual entries.
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>",
"action": "<action>"
},
"name": "hey_set_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The topic/thread ID (use topicId from list operations). For Paper Trail bundles, pass the postingId — trash works via a posting-based fallback, other actions return an error. | |
| action | Yes | The status action: trash (move to Trash), restore (recover from Trash), spam (mark as spam and block sender), unspam (restore from spam folder) |