> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getoutbox.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Agent Tool

> VAPI tool-call webhook target. The message payload follows VAPI's `tool-calls` shape; for each tool call we execute the named tool against the resolved voice thread and return TOON-encoded results.



## OpenAPI

````yaml POST /agent/tool/run/{tool_id}/
openapi: 3.1.0
info:
  title: Outbox AI API
  description: API for managing AI agents (chatbots and voicebots) on the Outbox platform
  version: 1.0.0
servers:
  - url: https://api.getoutbox.ai
security: []
paths:
  /agent/tool/run/{tool_id}/:
    post:
      tags:
        - agent
      summary: Execute Agent Tool (VAPI Webhook)
      description: >-
        VAPI tool-call webhook target. The message payload follows VAPI's
        `tool-calls` shape; for each tool call we execute the named tool against
        the resolved voice thread and return TOON-encoded results.
      operationId: agent_tool_run_create
      parameters:
        - in: header
          name: X-Vapi-Secret
          schema:
            type: string
          description: Shared secret used to resolve the originating thread.
        - in: path
          name: tool_id
          schema:
            type: string
            format: uuid
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentToolRunRequestRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AgentToolRunRequestRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AgentToolRunRequestRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentToolRunResponse'
          description: ''
      security:
        - jwtAuth: []
        - {}
components:
  schemas:
    AgentToolRunRequestRequest:
      type: object
      properties:
        message:
          description: >-
            VAPI tool-call message: `{call: {...}, toolCalls: [{id, function:
            {arguments}}]}`.
      required:
        - message
    AgentToolRunResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/AgentToolRunResult'
      required:
        - results
    AgentToolRunResult:
      type: object
      properties:
        toolCallId:
          type: string
        result:
          type: string
          description: TOON-encoded tool result (JSON fallback if encoding fails).
      required:
        - result
        - toolCallId
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````