Answer a parked interactive tool approval
Resolves a tool call the agent kernel parked for a human decision (B2). A tool-call frame on GET /v1/agent/stream with approvalRequired:true is the prompt; this endpoint answers it. The parked call resumes at once (the tool's result rides the SSE stream). A parked approval also denies on idle timeout, SSE disconnect, or turn Stop. Idempotent: a second answer for the same call (already resolved / unknown / expired) loses with 409. Only the conversation's own client, or the person at the Mac, may answer; another client is refused with 403.
always-allow is saved as a standing rule only after the device owner authenticates on the Mac, so a bearer's always-allow response waits for that authentication for up to 45 seconds. Without it the tool is allowed for this session and nothing is saved. An exec-class tool is never saved as always allowed: it runs this once, and so does a call a firewall Ask rule asks for, since the rule asks again on every call it matches. always-deny is saved at once, shown in the Security pane with the client that set it, where the person can revert it. standing_grant reports which happened.
Request
- Base URL: http://localhost:9998
- URL: http://localhost:9998/v1/agent/approve
- Auth: HTTP bearer
Request body
Response
Approval resolved; the turn resumes over SSE
Changes
No recorded changes to this operation across all 1 revision of this API.