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

# Get Tool Executions

> Get execution history for a specific tool.

Args:
    agent_id: The ID of the agent
    tool_id: The ID of the tool configuration
    limit: Maximum number of executions to return
    offset: Number of executions to skip
    status: Optional filter by execution status
    user_id: The user ID of the current user
    organization_id: The organization ID of the current user

Returns:
    List of tool executions

Raises:
    HTTPException: If tool not found or access denied



## OpenAPI

````yaml get /api/v1/agents/{agent_id}/tools/{tool_id}/executions
openapi: 3.1.0
info:
  title: ThenaAgentStudio
  description: |2-

        ThenaCrew AI CRM Renewal System

        An intelligent platform to automate customer renewal insights and communications through multi-agent workflows.

        Key Features:
        * AI-powered renewal analysis
        * Personalized communication generation
        * Automated opportunity tracking
        * Multi-agent workflow orchestration
        
  version: 1.0.0
servers:
  - url: https://agent-studio.thena.ai
    description: Production server
  - url: http://localhost:8008
    description: Local development server
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
    description: Agent management endpoints
  - name: Chat
    description: Chat and messaging endpoints
paths:
  /api/v1/agents/{agent_id}/tools/{tool_id}/executions:
    get:
      tags:
        - agent-tools
      summary: Get Tool Executions
      description: |-
        Get execution history for a specific tool.

        Args:
            agent_id: The ID of the agent
            tool_id: The ID of the tool configuration
            limit: Maximum number of executions to return
            offset: Number of executions to skip
            status: Optional filter by execution status
            user_id: The user ID of the current user
            organization_id: The organization ID of the current user

        Returns:
            List of tool executions

        Raises:
            HTTPException: If tool not found or access denied
      operationId: >-
        get_tool_executions_api_v1_agents__agent_id__tools__tool_id__executions_get
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
        - name: tool_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Tool Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            description: Maximum number of executions to return
            default: 50
            title: Limit
          description: Maximum number of executions to return
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            description: Number of executions to skip
            default: 0
            title: Offset
          description: Number of executions to skip
        - name: status
          in: query
          required: false
          schema:
            type: string
            description: Filter by execution status
            title: Status
          description: Filter by execution status
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AgentToolExecution'
                title: >-
                  Response Get Tool Executions Api V1 Agents  Agent Id  Tools 
                  Tool Id  Executions Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      deprecated: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    AgentToolExecution:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Unique identifier for the execution
        agent_tool_id:
          type: string
          format: uuid
          title: Agent Tool Id
          description: ID of the agent tool that was executed
        execution_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Execution Id
          description: ID of the flow execution this tool execution belongs to
        input_parameters:
          additionalProperties: true
          type: object
          title: Input Parameters
          description: Input parameters passed to the tool
        output_result:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Output Result
          description: Result returned by the tool
        status:
          type: string
          title: Status
          description: 'Execution status: ''running'', ''completed'', ''failed'''
        duration_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Duration Ms
          description: Execution duration in milliseconds
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
          description: Error message if execution failed
        executed_at:
          type: string
          format: date-time
          title: Executed At
          description: When the tool was executed
      type: object
      required:
        - id
        - agent_tool_id
        - status
        - executed_at
      title: AgentToolExecution
      description: Model for tracking agent tool executions.
      example:
        agent_tool_id: 123e4567-e89b-12d3-a456-426614174001
        duration_ms: 1500
        executed_at: '2023-01-01T00:00:00Z'
        execution_id: 123e4567-e89b-12d3-a456-426614174002
        id: 123e4567-e89b-12d3-a456-426614174000
        input_parameters:
          query: how to reset password
        output_result:
          results:
            - Found 3 articles
        status: completed
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````