List Gmail labels
list_labelsLists Gmail system + user labels (id/name/type) for a Google inbox. Use the user label ids with label_messages and unlabel_messages; system labels (INBOX, SPAM, TRASH...) are refused there. For non-Google inboxes, prefer list_folders.
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": {
"inboxId": "<inboxId>"
},
"name": "list_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inboxId | Yes |