toggle_labels
Add or remove multiple labels on a thread in one call, streamlining label management and reducing API requests.
Instructions
Add some labels and/or remove others from a thread in one call. The backend toggle endpoint is one-label-at-a-time, so this iterates internally.
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>",
"boardId": "<boardId>"
},
"name": "toggle_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | The board ID the thread belongs to | |
| threadId | Yes | The thread or task ID | |
| addLabelIds | No | Label IDs to add | |
| removeLabelIds | No | Label IDs to remove |