Edit a label
labels_updateRename a label, recolour it, or both. The id comes from labels_list. A new name carries the labels nested under it by / with it. An Outlook mailbox's category takes only a new colour, as Microsoft allows, and its folder only a new name, given where it is and keeping its id. A mailbox whose provider is imap renames its folder, which takes no colour, and answers the label's new id.
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": {
"mailbox": "<mailbox>",
"id": "<id>"
},
"name": "labels_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A label id from labels_list. | |
| name | No | Its new name. | |
| color | No | Its new colour. | |
| mailbox | Yes | The mailbox's name or its email address. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| type | No | ||
| messagesTotal | No | ||
| messagesUnread | No |