list_labels
Retrieve all Gmail labels, including system and user labels, with their IDs. Use these IDs to modify message labels or filter search results accurately.
Instructions
List every label on this account (system labels like INBOX/SENT/TRASH plus user labels), with their IDs.
Label IDs from here are what modify_message_labels and search_messages' label_ids argument expect.
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 |
|---|---|---|---|
No arguments | |||