Wait for a held sandbox payment's decision
await_approvalWaits for the decision on a payment that sandbox_pay reported as held, without paying again: long-polls the sandbox sidecar for up to timeoutSeconds (default 10, at most 20) and returns pending, approved, denied, expired or withdrawn, with the ledger entry and the decision deadline. This is what an agent does in the real product while a human decides; in the sandbox the model is also the approver (approve), so call approve from another turn or first. After approved, repeat sandbox_pay with approvalId to complete the payment. Read-only; never pays and never decides.
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": {
"sandbox_id": "<sandbox_id>",
"approvalId": "<approvalId>"
},
"name": "await_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| approvalId | Yes | The approval id returned by sandbox_pay in its "waiting for approval" result (Approval id: ...) | |
| sandbox_id | Yes | The sandbox_id returned by sandbox_create (32 hex characters) | |
| timeoutSeconds | No | How long to wait for a decision before answering pending (1 to 20, default 10) |