Apply labels to a thread
label_threadApply one or more existing labels to every message in a Gmail thread.
Instructions
Apply one or more existing labels to every message in a Gmail thread. Label IDs come from list_labels.
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": {
"account": "<account>",
"threadId": "<threadId>",
"labelIds": "<labelIds>"
},
"name": "label_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | The Gmail address to operate on. Must be one of the accounts returned by list_accounts. If you don't know which account to use, call list_accounts first and ask the user if ambiguous. | |
| labelIds | Yes | Gmail label IDs (from list_labels), e.g. ['INBOX', 'Label_12345']. | |
| threadId | Yes | The Gmail thread ID. |