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

# List background agents



## OpenAPI

````yaml /docs/reference/openapi.json get /background/agents
openapi: 3.1.0
info:
  description: >-
    The HTTP API of an agent served with `omniserve run --agent agent.py`: runs,
    approvals, budgets, background tasks, sessions and the evidence of every
    run.
  title: OmniServe
  version: latest
servers:
  - description: omniserve run, locally
    url: http://localhost:8000
security: []
paths:
  /background/agents:
    get:
      tags:
        - Background
      summary: List background agents
      operationId: list_background_agents_background_agents_get
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BackgroundAgentsResponse'
          description: Successful Response
components:
  schemas:
    BackgroundAgentsResponse:
      description: Response model for background agent listing.
      properties:
        agents:
          items:
            $ref: '#/components/schemas/BackgroundAgentSpec'
          title: Agents
          type: array
        total:
          title: Total
          type: integer
      required:
        - agents
        - total
      title: BackgroundAgentsResponse
      type: object
    BackgroundAgentSpec:
      additionalProperties: false
      properties:
        agent_config:
          additionalProperties: true
          title: Agent Config
          type: object
        agent_id:
          title: Agent Id
          type: string
        created_at:
          format: date-time
          title: Created At
          type: string
        local_tools_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Local Tools Ref
        mcp_tools:
          items:
            additionalProperties: true
            type: object
          title: Mcp Tools
          type: array
        metadata:
          additionalProperties: true
          title: Metadata
          type: object
        model_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Model Config
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        system_instruction:
          anyOf:
            - type: string
            - type: 'null'
          title: System Instruction
        updated_at:
          format: date-time
          title: Updated At
          type: string
        workspace_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Workspace Config
      required:
        - agent_id
      title: BackgroundAgentSpec
      type: object

````