Confirm a quoted spend
confirm_spendRuns what a quote was for, after the user said yes: a tool that spends AI credits first answers with needsConfirmation, the credits and a confirmToken; once the user agrees, call this with that confirmToken (or call the tool again with the same arguments and confirm: true). It runs exactly what was quoted — the same tool and arguments — once, within 30 minutes, for this connection only. Never call it without the user's yes to that quote.
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": {
"confirmToken": "<confirmToken>"
},
"name": "confirm_spend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmToken | Yes | The confirmToken of the quote the user approved (cs_…). | |
| idempotencyKey | No | Optional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice. |