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

# List tool test runs

> Recent runs of this tool triggered from the test endpoint, newest first. Covers manual tests only: a tool called by an agent during a real conversation is not recorded here.



## OpenAPI

````yaml /openapi.json get /v1/senders/{senderId}/agent/tools/{toolId}/test-runs
openapi: 3.0.3
info:
  title: Zavu Unified Messaging Layer API
  version: 0.2.0
  description: >
    Unified multi-channel messaging API for Zavu.


    Supported channels:

    - **SMS**: Simple text messages

    - **WhatsApp**: Rich messaging with media, buttons, lists, CTA URL buttons,
    location requests, and templates

    - **Telegram**: Bot messaging with text, media, and interactive elements

    - **Email**: Transactional emails via Amazon SES


    Design goals:

    - Simple `send()` entrypoint for developers

    - Project-level authentication via Bearer token

    - Support for all WhatsApp message types (text, image, video, audio,
    document, sticker, location, contact, buttons, list, cta_url,
    location_request, reaction, template)

    - If a non-text message type is sent, WhatsApp channel is used automatically

    - 24-hour WhatsApp conversation window enforcement

    - Universal `to` field accepts phone numbers (E.164), email addresses, or
    numeric chat IDs (Telegram/Instagram/Messenger)
servers:
  - url: https://api.zavu.dev
security:
  - bearerAuth: []
paths:
  /v1/senders/{senderId}/agent/tools/{toolId}/test-runs:
    get:
      tags:
        - Agent Tools
      summary: List tool test runs
      description: >-
        Recent runs of this tool triggered from the test endpoint, newest first.
        Covers manual tests only: a tool called by an agent during a real
        conversation is not recorded here.
      operationId: listAgentToolTestRuns
      parameters:
        - $ref: '#/components/parameters/SenderIdParam'
        - $ref: '#/components/parameters/ToolIdParam'
        - name: limit
          in: query
          schema:
            type: integer
            default: 20
            maximum: 100
      responses:
        '200':
          description: Recent test runs.
          content:
            application/json:
              schema:
                type: object
                required:
                  - items
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/AgentToolTestRun'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Tool not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  parameters:
    SenderIdParam:
      name: senderId
      in: path
      required: true
      schema:
        type: string
    ToolIdParam:
      name: toolId
      in: path
      required: true
      schema:
        type: string
  schemas:
    AgentToolTestRun:
      type: object
      description: >-
        One run of a tool triggered from the test endpoint. Recorded so a test
        is verifiable after the fact rather than only visible in the response.
      required:
        - id
        - toolId
        - success
        - durationMs
        - createdAt
      properties:
        id:
          type: string
        toolId:
          type: string
        params:
          type: object
          additionalProperties: true
          description: The parameters the tool was called with.
        success:
          type: boolean
          description: >-
            Whether the tool returned without error. A tool that answered with a
            non-2xx status is a failed run, not an error of this endpoint.
        statusCode:
          type: integer
          nullable: true
          description: >-
            HTTP status the tool's webhook returned. Absent for tools that do
            not go over HTTP.
        response:
          type: string
          nullable: true
          description: The tool's response body, truncated.
        error:
          type: string
          nullable: true
          description: Why the run failed, when it did.
        durationMs:
          type: integer
        createdAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: invalid_request
        message:
          type: string
          example: Phone number is invalid
        details:
          type: object
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````