Answer pending question
answer_pending_inputAnswer pending human-input requests for a paused run: approve or deny with a boolean, supply requested text, then poll the returned continuation run to track progress.
Instructions
Answer a run that is paused on a human-input request (from list_pending_inputs). For an approval, set approved=true/false. For an input request, set value to the requested text. A successful answer starts a continuation run: the returned run_id is that new continuation run, not the parked run, and is the id to poll with get_run_result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | An optional note recorded with the answer. | |
| scope | No | Set to "thread" to approve AND allow the rest of this conversation's writes to the same connection, method and host, instead of a standing grant. It expires after 24 hours and covers no other host, method or conversation. Only set it when the human said to stop being asked for the rest of this task; ignored without approved=true, and on a card that has no such scope. Cannot be combined with always_allow. | |
| value | No | For an input request: the value to supply. | |
| run_id | Yes | The parked run's id. | |
| approved | No | For an approval request: approve (true) or deny (false). | |
| always_allow | No | Approve AND stop asking for this tool on this agent (a standing grant). Only set it when the human explicitly said to stop being asked, and only on a row whose consent_tool is set; ignored without approved=true. Revoke via DELETE /v1/agents/{agent_id}/tool-consents/{tool}. | |
| tool_call_id | Yes | The tool_call_id of the pending request (from list_pending_inputs). | |
| max_turn_seconds | No | Optional soft wall-clock budget to preserve on the continuation run; it does not change the parked run or impose a hard deadline. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | No | The continuation run created by the answer. | |
| status | Yes | Answer status. | |
| already | No | Whether this request had already been answered. | |
| session_id | No | The continuation run's session. | |
| tool_call_id | Yes | The pending tool call that was answered. |