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

# Get agent modes

> Get all available modes for AI chat box and enabled workers



## OpenAPI

````yaml /api-reference/openapi.json get /api/agents/modes
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/agents/modes:
    get:
      tags:
        - Agents
      summary: Get agent modes
      description: Get all available modes for AI chat box and enabled workers
      operationId: AgentsController_getAgentModes
      parameters:
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAgentModesResponseDto'
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    GetAgentModesResponseDto:
      type: object
      properties:
        modes:
          type: array
          items:
            $ref: '#/components/schemas/AgentModeDto'
        workers:
          type: array
          items:
            $ref: '#/components/schemas/WorkerInstance'
      required:
        - modes
        - workers
    AgentModeDto:
      type: object
      properties:
        id:
          type: string
          example: ask
        name:
          type: string
          example: ask
        description:
          type: string
          example: Ask anything about security
        color:
          type: string
          example: '#6b7280'
        isAvailable:
          type: boolean
          example: true
      required:
        - id
        - name
        - description
        - color
        - isAvailable
    WorkerInstance:
      type: object
      properties:
        id:
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        lastSeenAt:
          format: date-time
          type: string
        token:
          type: string
        name:
          type: string
        os:
          type: string
        ipAddress:
          type: string
        currentJobsCount:
          type: number
        type:
          type: string
          enum:
            - built_in
            - provider
        scope:
          type: string
          enum:
            - cloud
            - workspace
        tool:
          $ref: '#/components/schemas/Tool'
        internalNetworkId:
          type: string
        tools:
          type: array
          items:
            $ref: '#/components/schemas/Tool'
        enabledAgentMode:
          type: boolean
        isOnline:
          type: boolean
      required:
        - id
        - createdAt
        - updatedAt
        - lastSeenAt
        - token
        - currentJobsCount
        - type
        - scope
        - tool
        - internalNetworkId
        - tools
    Tool:
      type: object
      properties:
        id:
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        name:
          type: string
        description:
          type: string
        command:
          type: string
        category:
          type: string
          enum:
            - subdomains
            - http_probe
            - ports_scanner
            - vulnerabilities
            - screenshot
            - classifier
            - assistant
        version:
          type: string
        logoUrl:
          type: string
          nullable: true
        isBuiltIn:
          type: boolean
        isInstalled:
          type: boolean
        isOfficialSupport:
          type: boolean
        type:
          type: string
          enum:
            - built_in
            - provider
        providerId:
          type: string
        availableWorkersCount:
          type: number
      required:
        - id
        - createdAt
        - updatedAt
        - name
        - description
        - command
        - category
        - version
        - isBuiltIn
        - isInstalled
        - isOfficialSupport
        - type
        - providerId

````