label_thread
Add labels to one or more email threads, including future messages, to organize, archive, mark read, or star them. Supports system and user labels with reversible changes.
Instructions
Add labels to a whole thread (or to a list of threads), future messages included. Labels: system IDs (INBOX, UNREAD, STARRED, IMPORTANT, CATEGORY_*) or user label IDs (list_labels), or their exact names. Archive = unlabel INBOX; mark read = unlabel UNREAD; star = label STARRED. Trash: trash_*; spam, sent and drafts: never. Reversible, no confirmation needed; at most 100 items per call.
Args: threadId: thread ID, or a list of IDs. labelIds: labels to add (IDs or names). createMissing: create missing user labels (default false; otherwise an error).
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": {
"threadId": "<threadId>",
"labelIds": "<labelIds>"
},
"name": "label_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labelIds | Yes | ||
| threadId | Yes | ||
| createMissing | No |