complete_message
Record the outcome of a message the agent handled: done or failed, optionally with labels and a note. Returns the message's state. This is the agent's own record of what it did — the platform stores it and takes no further action.
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": {
"messageId": "<messageId>",
"domainId": "<domainId>",
"state": "<state>"
},
"name": "complete_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional: a short free-text note about what the agent did with it. | |
| state | Yes | `done` when the agent finished with it, `failed` when it tried and did not succeed. | |
| labels | No | Optional: short labels for the message, e.g. `["invoice", "needs-review"]`. | |
| domainId | Yes | The id of the domain that received the message — from `list_domains`. Required: the state belongs to one domain's mailbox. | |
| messageId | Yes | The message id — the `messageId` value from a `list_events` row (the SMTP Message-ID). |