Move emails
move_emailsMove messages to a folder other than the archive or trash.
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": {
"messageIds": "<messageIds>",
"folder": "<folder>"
},
"name": "move_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | Destination folder name or role | |
| accountId | No | Account to operate on. Optional when exactly one account is connected. | |
| messageIds | Yes | Messages to change, up to 100 IDs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |