update_email_flags
Change an email's flags in the user's connected Gmail, Outlook or IMAP mailbox as well as in FuseAI: read/unread, favorite, archive, spam, or delete/restore (setting archive, spam or delete to false moves the email back to the inbox). Send any subset of the booleans for one emailId. isDeleted=true moves the email to trash — confirm with the user before using it.
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": {
"emailId": "<emailId>"
},
"name": "update_email_flags"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isRead | No | ||
| isSpam | No | ||
| emailId | Yes | ||
| isDeleted | No | ||
| isArchived | No | ||
| isFavorite | No |