request_approval
Open a durable, non-blocking human approval gate for an action, return a gate ID, and require explicit accept, decline, or cancel before proceeding; poll the gate for the outcome.
Instructions
Human-in-the-loop gate: open a durable approval gate and return {status: input_required, gate_id} without blocking. A human resolves it later (accept/decline/cancel) over the /ui; poll get_approval_gate for the outcome. Silence is never consent. Pass thread_id to make it a claim gate — while the gate is pending, claim_next will not hand that thread to an agent.
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": {
"prompt": "<prompt>"
},
"name": "request_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risk | No | how much a wrong accept would cost; omitted means high. The workspace's approval policy decides from it whether a model's accept through approval_decide needs a person to confirm it in the console | |
| prompt | Yes | what the human is being asked to approve | |
| schema | No | optional JSON Schema for structured detail the human may supply alongside their decision | |
| thread_id | No | optional thread to gate: while pending, claim_next skips this thread (a required-human claim gate) |