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

# Sync agent tool schemas

> Refresh all agents in the organization to use the latest tool schemas from the platform.

Preserves tool-specific configurations like `callableAgentIds` for the `call_agent` tool
or `accessibleKnowledgeBaseIds` for the `search_knowledge_base` tool.

<Note>
  This endpoint requires `org:admin` role. Run this after tool schemas have been updated
  in the platform to ensure all agents use the latest definitions.
</Note>




## OpenAPI

````yaml /openapi.yaml post /agents/sync-tools
openapi: 3.1.0
info:
  title: AsterAgents API
  version: 1.0.0
  description: >
    API for AsterAgents platform operations.


    - **Admin endpoints** (`/admin/*`) require organization admin privileges
    (`org:admin` role)

    - **Agent endpoints** (`/agents`) require agent management permissions or
    `org:admin` role

    - **Knowledge base endpoints** (`/kb/*`) require standard authentication

    - **Skills endpoints** (`/skills/*`) require standard authentication

    - **File endpoints** (`/upload/*`, `/kb/files`, `/skills/files`) require
    standard authentication
  contact:
    name: AsterAgents Support
    url: https://asteragents.com/support
servers:
  - url: https://asteragents.com/api
    description: Production
  - url: http://localhost:3000/api
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Users
    description: Manage active organization users
  - name: Invitations
    description: Manage organization invitations
  - name: Files
    description: Upload and manage files
  - name: Knowledge Bases
    description: Manage knowledge bases and their files
  - name: Knowledge Base Management
    description: Create, update, and delete knowledge bases
  - name: Agents
    description: Create, update, and delete agents
  - name: Agent Tags
    description: Organize agents with tags
  - name: Tools
    description: Discover the tool catalog available to your organization
  - name: Skills
    description: Manage agent skills
  - name: Skill Files
    description: Manage bundled files for skills
  - name: Conversations
    description: Invoke agents and retrieve conversation history and messages
  - name: Scheduled Tasks
    description: Schedule agents to run automatically on a cron schedule
paths:
  /agents/sync-tools:
    post:
      tags:
        - Agents
      summary: Sync agent tool schemas
      description: >
        Refresh all agents in the organization to use the latest tool schemas
        from the platform.


        Preserves tool-specific configurations like `callableAgentIds` for the
        `call_agent` tool

        or `accessibleKnowledgeBaseIds` for the `search_knowledge_base` tool.


        <Note>
          This endpoint requires `org:admin` role. Run this after tool schemas have been updated
          in the platform to ensure all agents use the latest definitions.
        </Note>
      operationId: syncAgentTools
      responses:
        '200':
          description: Tool schemas synced successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - updated
                  - total
                  - agents
                properties:
                  success:
                    type: boolean
                  updated:
                    type: integer
                    description: Number of agents successfully updated
                  total:
                    type: integer
                    description: Total number of agents in the organization
                  agents:
                    type: array
                    description: List of updated agents
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        name:
                          type: string
              examples:
                success:
                  value:
                    success: true
                    updated: 5
                    total: 5
                    agents:
                      - id: 1
                        name: Customer Support Agent
                      - id: 2
                        name: Sales Assistant
        '403':
          description: Forbidden - only admins can sync tools
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: 'Unauthorized: Only admins can sync agent tools'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: Bad Request
        details:
          type: array
          items:
            type: object
            additionalProperties: true
  responses:
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Internal Server Error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        JWT token from Clerk authentication.

        Must be from a user with `org:admin` role.

````