label_thread
Applies labels to every message in a thread to mark it STARRED or move the conversation to a folder.
Instructions
Adds labels to every message in a thread (e.g. STARRED, or a folder label to move the conversation).
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 | Label ids: STARRED, UNREAD, INBOX, TRASH, SPAM, or a user label id from list_labels. Adding a folder label moves the message to that folder (one folder per message); removing the current folder label moves it back to INBOX. | |
| threadId | Yes |