list_labels
Lists all system and user-defined labels in the authenticated mailbox, returning each label’s ID, name, type, and visibility settings for mailbox organization and filtering.
Instructions
List all labels in the authenticated user's mailbox (system and user-defined).
Returns: List of labels with id, name, type, message_list_visibility, and label_list_visibility. On API failure, {"error": "..."}.
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 |
|---|---|---|---|
| result | Yes |