Approve or decline a suspended tool call
Submits an approval decision for a task whose agent stream is suspended waiting for user input (e.g., plan approval, ask_question).
- approve: resumes the agent with the provided metadata/answers.
- decline: cancels the pending action.
For suspended streams, the endpoint atomically transitions the stream
from suspended to resuming (CAS guard) to prevent double-approve.
For active streams with in-tool timeout approval (ask_question), the
endpoint forwards the decision to the Bun agent’s in-memory waiter.
Authorizations
JWT authentication token
Path Parameters
Task ID
Body
Whether to approve or decline the pending tool call
approve, decline Agent ID to resume (optional, resolved from stream metadata if omitted)
Answers or additional data to pass to the resumed tool (e.g., ask_question answers)
Agent run ID (optional, resolved from stream metadata if omitted)
Specific tool call ID to approve (for parallel subagent routing)

