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

# List Agents Using Tool

> Every agent whose draft configuration references this tool — the
pre-flight check before a delete.



## OpenAPI

````yaml get /v1/agent/tools/{tool_id}/agents
openapi: 3.1.0
info:
  title: FishAudio OpenAPI
  version: '1'
servers:
  - description: Fish Audio API
    url: https://api.fish.audio
security: []
tags: []
paths:
  /v1/agent/tools/{tool_id}/agents:
    get:
      tags:
        - Agent Tools
      summary: List Agents Using Tool
      description: >-
        Every agent whose draft configuration references this tool — the

        pre-flight check before a delete. Published versions keep executing
        their

        frozen tool snapshot, so only draft references block deletion.
      parameters:
        - in: path
          name: tool_id
          description: ''
          required: true
          schema:
            title: Tool Id
            type: string
          deprecated: false
      responses:
        '200':
          description: Request fulfilled, document follows
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  agents:
                    description: >-
                      Agents that reference this resource in their
                      configuration.
                    items:
                      $ref: '#/components/schemas/PublicDependentAgent'
                    title: Agents
                    type: array
                  total:
                    title: Total
                    type: integer
                required:
                  - agents
                  - total
                type: object
        '401':
          description: No permission -- see authorization schemes
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
        '404':
          description: Nothing matches the given URI
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
      security:
        - BearerAuth: []
components:
  schemas:
    PublicDependentAgent:
      properties:
        agent_id:
          title: Agent Id
          type: string
        name:
          title: Name
          type: string
      required:
        - agent_id
        - name
      title: PublicDependentAgent
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````