modify_email
Modify label assignments on an email to move it to different folders, applying or removing multiple labels with a single request.
Instructions
Modify email labels (move to different 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": {
"message_id": "<message_id>"
},
"name": "modify_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label_ids | No | List of label IDs to apply | |
| message_id | Yes | ID of the email message to modify | |
| add_label_ids | No | List of label IDs to add | |
| remove_label_ids | No | List of label IDs to remove |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |