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

# Execute evaluated tool

> Execute an evaluated tool from inside the sandbox



## OpenAPI

````yaml https://api.getcargo.io/openapi.json post /ai/evaluatedTools/execute
openapi: 3.1.0
info:
  title: Cargo API
  version: 1.0.0
  description: Cargo Platform API v1
servers:
  - url: https://api.getcargo.io/v1
    description: Cargo API
security:
  - bearerAuth: []
paths:
  /ai/evaluatedTools/execute:
    post:
      tags:
        - AI - Evaluated Tools
      summary: Execute evaluated tool
      description: Execute an evaluated tool from inside the sandbox
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  minLength: 1
                  title: Tool id
                  description: >-
                    Id of the evaluated tool to execute (the same id the model
                    sees in its tool surface, e.g. `tools_send_email`).
                input:
                  title: Tool input
                  description: Input passed to the resolved evaluated tool's execute call.
              required:
                - id
              additionalProperties: false
              title: Request body
              description: >-
                Body schema for the evaluated-tool execute endpoint. Identity
                (workspace, message) is derived from the bearer token and never
                trusted from the body.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
                  batchUuid:
                    type: string
                  runUuid:
                    type: string
                  creditsUsedCount:
                    type: number
                additionalProperties: false
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: Not found
        '500':
          description: Internal server error
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````