llamaindex · Capability

LlamaIndex LlamaExtract API — Extraction Agents

LlamaIndex LlamaExtract API — Extraction Agents. 5 operations. Lead operation: List extraction agents. Self-contained Naftiko capability covering one Llamaindex business surface.

Run with Naftiko LlamaindexExtraction Agents

What You Can Do

GET
Listextractionagents — List extraction agents
/v1/extraction/extraction-agents
POST
Createextractionagent — Create an extraction agent
/v1/extraction/extraction-agents
GET
Getextractionagent — Get an extraction agent
/v1/extraction/extraction-agents/{agentid}
PUT
Updateextractionagent — Update an extraction agent
/v1/extraction/extraction-agents/{agentid}
DELETE
Deleteextractionagent — Delete an extraction agent
/v1/extraction/extraction-agents/{agentid}

MCP Tools

list-extraction-agents

List extraction agents

read-only idempotent
create-extraction-agent

Create an extraction agent

get-extraction-agent

Get an extraction agent

read-only idempotent
update-extraction-agent

Update an extraction agent

idempotent
delete-extraction-agent

Delete an extraction agent

idempotent

Capability Spec

llamaextract-extraction-agents.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: LlamaIndex LlamaExtract API — Extraction Agents
  description: 'LlamaIndex LlamaExtract API — Extraction Agents. 5 operations. Lead operation: List extraction agents. Self-contained
    Naftiko capability covering one Llamaindex business surface.'
  tags:
  - Llamaindex
  - Extraction Agents
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LLAMAINDEX_API_KEY: LLAMAINDEX_API_KEY
capability:
  consumes:
  - type: http
    namespace: llamaextract-extraction-agents
    baseUri: https://api.cloud.llamaindex.ai/api/v1
    description: LlamaIndex LlamaExtract API — Extraction Agents business capability. Self-contained, no shared references.
    resources:
    - name: extraction-extraction-agents
      path: /extraction/extraction-agents
      operations:
      - name: listextractionagents
        method: GET
        description: List extraction agents
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: project_id
          in: query
          type: string
          description: Filter extraction agents by project identifier.
          required: true
      - name: createextractionagent
        method: POST
        description: Create an extraction agent
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: extraction-extraction-agents-agentId
      path: /extraction/extraction-agents/{agentId}
      operations:
      - name: getextractionagent
        method: GET
        description: Get an extraction agent
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateextractionagent
        method: PUT
        description: Update an extraction agent
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteextractionagent
        method: DELETE
        description: Delete an extraction agent
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.LLAMAINDEX_API_KEY}}'
  exposes:
  - type: rest
    namespace: llamaextract-extraction-agents-rest
    port: 8080
    description: REST adapter for LlamaIndex LlamaExtract API — Extraction Agents. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/extraction/extraction-agents
      name: extraction-extraction-agents
      description: REST surface for extraction-extraction-agents.
      operations:
      - method: GET
        name: listextractionagents
        description: List extraction agents
        call: llamaextract-extraction-agents.listextractionagents
        with:
          project_id: rest.project_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createextractionagent
        description: Create an extraction agent
        call: llamaextract-extraction-agents.createextractionagent
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/extraction/extraction-agents/{agentid}
      name: extraction-extraction-agents-agentid
      description: REST surface for extraction-extraction-agents-agentId.
      operations:
      - method: GET
        name: getextractionagent
        description: Get an extraction agent
        call: llamaextract-extraction-agents.getextractionagent
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateextractionagent
        description: Update an extraction agent
        call: llamaextract-extraction-agents.updateextractionagent
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteextractionagent
        description: Delete an extraction agent
        call: llamaextract-extraction-agents.deleteextractionagent
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: llamaextract-extraction-agents-mcp
    port: 9090
    transport: http
    description: MCP adapter for LlamaIndex LlamaExtract API — Extraction Agents. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: list-extraction-agents
      description: List extraction agents
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: llamaextract-extraction-agents.listextractionagents
      with:
        project_id: tools.project_id
      outputParameters:
      - type: object
        mapping: $.
    - name: create-extraction-agent
      description: Create an extraction agent
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: llamaextract-extraction-agents.createextractionagent
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-extraction-agent
      description: Get an extraction agent
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: llamaextract-extraction-agents.getextractionagent
      outputParameters:
      - type: object
        mapping: $.
    - name: update-extraction-agent
      description: Update an extraction agent
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: llamaextract-extraction-agents.updateextractionagent
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-extraction-agent
      description: Delete an extraction agent
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: llamaextract-extraction-agents.deleteextractionagent
      outputParameters:
      - type: object
        mapping: $.