writeFile, deleteFile, runCommand), the SSE stream pauses with a tool-approval-request event. Use this endpoint to approve or deny and continue.
Request
Key Design
- Does NOT re-analyze — directly continues via
streamText()with the full message history - Supports chained approvals — multiple approvals in a single multi-step execution
- The denied-tool system prompt instructs the agent not to retry denied tools
Response
Same SSE stream format asPOST /run.