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

# Get Latest Tool Interface

> This endpoint returns the latest interface schema for a specific tool. The interface
describes the inputs and outputs that the tool accepts and produces.



## OpenAPI

````yaml https:/api.hunch.tools/openapi.json get /v1beta2/tool/{tool_uid}/latest-interface
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.hunch.tools
security: []
paths:
  /v1beta2/tool/{tool_uid}/latest-interface:
    get:
      tags:
        - Tools
      summary: Get Latest Tool Interface
      description: >-
        This endpoint returns the latest interface schema for a specific tool.
        The interface

        describes the inputs and outputs that the tool accepts and produces.
      operationId: get_latest_tool_interface
      parameters:
        - name: tool_uid
          in: path
          required: true
          schema:
            type: string
            title: Tool Uid
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetToolInterfaceResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPBadRequestError'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPUnauthorizedError'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPForbiddenError'
          description: Forbidden
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '456':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExposedError'
          description: Additional Response
      security:
        - HTTPBearer: []
components:
  schemas:
    GetToolInterfaceResponse:
      properties:
        tool_uid:
          type: string
          title: Tool Uid
          description: The unique identifier of the tool
        name:
          type: string
          title: Name
          description: The name of the tool
        interface:
          $ref: '#/components/schemas/ToolInterface'
          description: The interface schema of the tool
        interface_digest:
          type: string
          title: Interface Digest
          description: >-
            A digest of the interface schema. Useful to easily check if the
            interface has changed.
      type: object
      required:
        - tool_uid
        - name
        - interface
        - interface_digest
      title: GetToolInterfaceResponse
      description: The response body returned when requesting a tool's interface.
    HTTPBadRequestError:
      properties:
        detail:
          type: string
          title: Detail
      additionalProperties: false
      type: object
      required:
        - detail
      title: HTTPBadRequestError
    HTTPUnauthorizedError:
      properties:
        detail:
          type: string
          title: Detail
      additionalProperties: false
      type: object
      required:
        - detail
      title: HTTPUnauthorizedError
    HTTPForbiddenError:
      properties:
        detail:
          type: string
          title: Detail
      additionalProperties: false
      type: object
      required:
        - detail
      title: HTTPForbiddenError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    HTTPExposedError:
      properties:
        severity:
          $ref: '#/components/schemas/Severity'
          default: error
        title:
          type: string
          title: Title
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
      additionalProperties: false
      type: object
      required:
        - title
      title: HTTPExposedError
      description: >-
        An error that is exposed to the frontend via the API that can be
        rendered as

        a notification.
    ToolInterface:
      properties:
        blocks:
          items:
            $ref: '#/components/schemas/ToolInterfaceBlock'
          type: array
          title: Blocks
      type: object
      required:
        - blocks
      title: ToolInterface
      description: Describes the interface of a tool.
    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
    Severity:
      type: string
      enum:
        - error
        - warning
        - info
      title: Severity
    ToolInterfaceBlock:
      properties:
        type:
          type: string
          enum:
            - input
            - output
          title: Type
        title:
          type: string
          title: Title
      type: object
      required:
        - type
        - title
      title: ToolInterfaceBlock
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````