Confirm or cancel a held action
confirm_actionFor shop owners: the Confirm and Cancel buttons in Confita's confirm card call this with the one-time token the card holds. Only the card can call 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": {
"action_id": "<action_id>",
"token": "<token>",
"decision": "<decision>",
"request_id": "<request_id>"
},
"name": "confirm_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | The one-time token from the held reply's _meta. | |
| decision | Yes | confirm runs the held action as it was shown; cancel withdraws it. | |
| action_id | Yes | The held action, from the reply's confirmation. | |
| request_id | Yes | Unique per call; the same id again returns the first result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| done | No | ||
| next | No | ||
| error | No | ||
| message | No | ||
| outcome | No | ||
| summary | No | ||
| decision | No | ||
| happened | No | ||
| timezone | No | ||
| action_id | No | ||
| confirmation | No |