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

# Agent Call

> Invoke a Pureframe tool by name. Designed for AI agents and LLM tool-calling integrations.

Available tools: `search_videos`, `list_collections`, `get_collection`, `get_video`.
Fetch the tool schema from `GET /v1/agent/schema.json`.

`search_videos` results include `thumbnail_base64` — a base64-encoded JPEG that
vision-capable models (GPT-4o, Claude) can consume directly.



## OpenAPI

````yaml /openapi.json post /v1/agent/call
openapi: 3.1.0
info:
  title: Pureframe API
  version: v1
  description: >-
    The Pureframe API lets you upload videos, index them for semantic search,
    and retrieve timestamped clips matching text queries or reference images.
    All endpoints require a Bearer API key (`Authorization: Bearer pf_...`).
  contact:
    url: https://pureframe.ai
    email: hello@pureframe.ai
  x-logo:
    url: https://pureframe.ai/logo.png
servers:
  - url: https://api.pureframe.ai
    description: Production
security: []
tags: []
paths:
  /v1/agent/call:
    post:
      tags:
        - Agent
      summary: Agent Call
      description: >-
        Invoke a Pureframe tool by name. Designed for AI agents and LLM
        tool-calling integrations.


        Available tools: `search_videos`, `list_collections`, `get_collection`,
        `get_video`.

        Fetch the tool schema from `GET /v1/agent/schema.json`.


        `search_videos` results include `thumbnail_base64` — a base64-encoded
        JPEG that

        vision-capable models (GPT-4o, Claude) can consume directly.
      operationId: agent_call_v1_agent_call_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentCallRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AgentCallRequest:
      properties:
        tool:
          type: string
          title: Tool
        input:
          additionalProperties: true
          type: object
          title: Input
      type: object
      required:
        - tool
      title: AgentCallRequest
    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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````