claim_message
Claim a received message for processing — record that this agent is working on it now, so a restarted agent can tell what it already handled. Returns the message's state (processing). Fails with message_claimed when another credential of the same account holds a live claim; an expired claim does not block. Follow it with complete_message.
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>"
},
"name": "claim_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domainId | Yes | The id of the domain that received the message — from `list_domains`. Required: the state belongs to one domain's mailbox. | |
| claimedBy | No | Optional: a label for which worker of yours holds the claim, e.g. `worker-1`. Defaults to the credential. | |
| messageId | Yes | The message id — the `messageId` value from a `list_events` row (the SMTP Message-ID). |