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

> Retrieves all enabled items for a specific agent, categorized by type. Use this endpoint to see which tools, frontend actions, API tools, and MCP servers are currently enabled for an agent.  **Categor

# List Agent Tools and Actions

For the complete error reference, see [Error Guide](/rest-api/ai-agents-apis/error-codes).


## OpenAPI

````yaml get /ai-agents/agent-builder/agents/{uid}/enabled-items
openapi: 3.0.0
info:
  title: AI Agents APIs
  description: API reference for CometChat AI Agents service
  version: '1.0'
servers:
  - url: https://{appId}.api-{region}.cometchat.io/v3
    variables:
      appId:
        default: appId
        description: (Required) App ID
      region:
        enum:
          - us
          - eu
          - in
        default: us
        description: Select Region
security: []
tags:
  - name: ai-agent
    description: ''
paths:
  /ai-agents/agent-builder/agents/{uid}/enabled-items:
    get:
      tags:
        - Agent Builder
      summary: List Agent Tools and Actions
      description: >-
        Retrieves all enabled items for a specific agent, categorized by type.
        Use this endpoint to see which tools, frontend actions, API tools, and
        MCP servers are currently enabled for an agent.


        **Categories:** Results are grouped into tools, frontend actions, API
        tools, and MCP servers. Use query parameters to include or exclude
        specific categories.


        **Search:** Use the `key` parameter to filter enabled items by name or
        description.
      operationId: AgentBuilderController_getEnabledItems
      parameters:
        - name: uid
          required: true
          in: path
          description: Unique identifier of the agent
          schema:
            type: string
        - name: tools
          required: false
          in: query
          description: 'Include enabled tools (default: true)'
          schema:
            default: true
            type: boolean
        - name: frontendActions
          required: false
          in: query
          description: 'Include enabled frontend actions (default: true)'
          schema:
            default: true
            type: boolean
        - name: apiTools
          required: false
          in: query
          description: 'Include enabled API tools (default: true)'
          schema:
            default: true
            type: boolean
        - name: mcpServers
          required: false
          in: query
          description: 'Include enabled MCP servers (default: true)'
          schema:
            default: true
            type: boolean
        - name: key
          required: false
          in: query
          description: Search term to filter by name/description
          schema:
            type: string
      responses:
        '200':
          description: Categorized enabled items for the agent
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      tools:
                        type: array
                        items:
                          type: object
                          properties:
                            slug:
                              type: string
                            name:
                              type: string
                            description:
                              type: string
                            icon:
                              type: string
                            actions:
                              type: array
                              items:
                                type: object
                                properties:
                                  slug:
                                    type: string
                                  name:
                                    type: string
                                  description:
                                    type: string
                      frontendActions:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            name:
                              type: string
                            description:
                              type: string
                            triggerFunction:
                              type: string
                            parameters:
                              type: array
                              items:
                                type: object
                                properties:
                                  key:
                                    type: string
                                  type:
                                    type: string
                                  description:
                                    type: string
                                  required:
                                    type: boolean
                      apiTools:
                        type: array
                        items:
                          type: object
                          properties:
                            slug:
                              type: string
                            name:
                              type: string
                            description:
                              type: string
                            icon:
                              type: string
                            endpoint:
                              type: string
                            method:
                              type: string
                            parameters:
                              type: array
                              items:
                                type: object
                                properties:
                                  key:
                                    type: string
                                  type:
                                    type: string
                                  description:
                                    type: string
                                  required:
                                    type: boolean
                      mcpServers:
                        type: array
                        items:
                          type: object
                          properties:
                            slug:
                              type: string
                            name:
                              type: string
                            description:
                              type: string
                            icon:
                              type: string
                            url:
                              type: string
              example:
                data:
                  tools:
                    - slug: gmail
                      name: Gmail
                      description: Gmail integration
                      icon: https://example.com/gmail-icon.png
                      actions:
                        - slug: GMAIL_SEND_EMAIL
                          name: Send Email
                          description: Send an email via Gmail
                  frontendActions:
                    - id: myapp_onUserClick
                      name: User Click Action
                      description: Triggered when a user clicks a button
                      triggerFunction: onUserClick
                      parameters:
                        - key: userId
                          type: string
                          description: The user identifier
                          required: true
                  apiTools:
                    - slug: my-api-tool
                      name: My API Tool
                      description: Calls an external API
                      icon: https://example.com/icon.png
                      endpoint: https://api.example.com/search
                      method: GET
                      parameters:
                        - key: query
                          type: string
                          description: The search query
                          required: true
                  mcpServers:
                    - slug: my-mcp-server
                      name: My MCP Server
                      description: A Model Context Protocol server
                      icon: https://example.com/icon.png
                      url: https://mcp.example.com/sse
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      description: API Key (i.e. Rest API Key from the Dashboard).
      name: apikey
      in: header

````