session_respond
Resolve an agent's paused tool call by approving or denying it. Supply the tool_use_id and a result of allow or deny, plus an optional deny message.
Instructions
Approve or deny a tool call the agent is waiting on (a permission policy gate).
When session_get shows status "idle" with stop_reason requires_action, the
agent paused for confirmation. The blocking event ids are in
stop_reason.event_ids. Call this with tool_use_id = the blocking event id
and result = "allow" or "deny" (add deny_message to explain a denial).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| tool_use_id | Yes | ||
| result | Yes | ||
| deny_message | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||