approve
Resolve pending permission requests for a delegated coding-agent turn by allowing once or choosing an option ID, then wait for the result or a follow-up question.
Instructions
Allow this one tool call (allow_once), or pick option_id explicitly. Blocks until the turn is done, needs an approval or asks a question; the server sets no time limit. If your client times out, the turn keeps running and the connection stays: call status for the state and output for the reply instead of sending the task again. Returns "approval_needed" with an approval to answer via approve / allow / reject, or "question_needed" with a question to answer via answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait for the result (default true). false returns right after sending. | |
| session | Yes | Session id returned by open | |
| option_id | No | ||
| approval_id | Yes | approval_id from the approval_needed result |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | ||
| status | Yes | ||
| outcome | No | ||
| turn_id | No | ||
| approval | No | ||
| question | No |