Skip to main content

Overview

Tool approval responses are submitted through the standard Add Session Thread Message endpoint. The approval decisions are included in the content field of the message, alongside optional text feedback.

Request Format

Endpoint

Authentication

Basic Approval Response

Approval Result Structure

Each tool approval result must include all fields from the original approval request:
Important: You must preserve all original fields from the TOOL_EXECUTION_APPROVAL_REQUEST event and only modify the approvalResult field.

Batch Response Examples

Mixed Approval/Denial

Abort with Feedback

File and Image Restrictions

Allowed: Files with Abort Responses

Not Allowed: Files with Approval/Denial

Complete Implementation Example

Response Handling

The API responds with standard SSE events. After submitting approvals, you’ll receive:
  1. NOTIFICATION_TOOL_EXECUTION_APPROVAL_ACCEPTED for approved tools
  2. NOTIFICATION_TOOL_EXECUTION_APPROVAL_DENIED for denied tools
  3. NOTIFICATION_TOOL_EXECUTION_APPROVAL_ABORTED for aborted tools
  4. Standard AGENT_RESPONSE_* events as the agent continues processing

Error Responses

Validation Errors

State Constraint Violations

Next Steps