confirm write
confirm_writeCarry out or cancel a write the user was asked to confirm. Only the confirm card calls it, with the held write's ticket and the user's Yes or No; the model can't. Yes runs the held write once (a used or expired ticket fails), and No changes nothing. If the write fails, the ticket is kept so the card shows why and its Yes can try again. Returns what was saved.
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": {
"ticket": "<ticket>",
"approve": "<approve>"
},
"name": "confirm_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticket | Yes | The held write's ticket, from the confirm card | |
| approve | Yes | true for the user's Yes, false for No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The answer, or what was done, in plain words for the user: the same text as content | |
| undo | No | On a saved write: its undo handle, for undo within 24 hours | |
| widget | No | The card the host draws with it, e.g. "pipeline"; "confirm" means a write waits for the user's Yes and nothing is saved yet |