list_labels
Retrieve Gmail label IDs, names, and types to identify system and user labels for labeling or unlabeling messages via label IDs or exact names.
Instructions
List Gmail labels (id, name, type system/user): system labels first, then the user's.
label_* and unlabel_* take these IDs (or the exact names).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| count | No | ||
| error | No | ||
| labels | No | ||
| status | Yes | ||
| warning | No |