Mark as spam
mark_spamMove one message into the mailbox's Junk/Spam folder, wherever that folder is named. Reversible: restore_message moves it back. For any other destination folder, move_message is the general move. Returns the destination folder path.
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>",
"uid": "<uid>"
},
"name": "mark_spam"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Message UID from list_messages | |
| folder | No | Source IMAP folder (default "INBOX") | |
| mailbox | Yes | Full mailbox address |