Flag or unflag
flagMark selected email messages as important or remove that status using message UIDs and an optional folder.
Instructions
Flag messages as important, or remove the flag.
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": {
"uids": "<uids>"
},
"name": "flag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | Message UIDs from search_messages, 50 at most. | |
| folder | No | Folder path from list_folders, such as "INBOX". | INBOX |
| flagged | No | false removes the flag. |