llamaindex · Capability

LlamaIndex LlamaCloud API — Files

LlamaIndex LlamaCloud API — Files. 1 operations. Lead operation: Upload a file. Self-contained Naftiko capability covering one Llamaindex business surface.

Run with Naftiko LlamaindexFiles

What You Can Do

POST
Uploadfile — Upload a file
/v1/files

MCP Tools

upload-file

Upload a file

Capability Spec

llamacloud-files.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: LlamaIndex LlamaCloud API — Files
  description: 'LlamaIndex LlamaCloud API — Files. 1 operations. Lead operation: Upload a file. Self-contained Naftiko capability
    covering one Llamaindex business surface.'
  tags:
  - Llamaindex
  - Files
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LLAMAINDEX_API_KEY: LLAMAINDEX_API_KEY
capability:
  consumes:
  - type: http
    namespace: llamacloud-files
    baseUri: https://api.cloud.llamaindex.ai/api/v1
    description: LlamaIndex LlamaCloud API — Files business capability. Self-contained, no shared references.
    resources:
    - name: files
      path: /files
      operations:
      - name: uploadfile
        method: POST
        description: Upload a file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: project_id
          in: query
          type: string
          description: The project to associate the file with.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.LLAMAINDEX_API_KEY}}'
  exposes:
  - type: rest
    namespace: llamacloud-files-rest
    port: 8080
    description: REST adapter for LlamaIndex LlamaCloud API — Files. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/files
      name: files
      description: REST surface for files.
      operations:
      - method: POST
        name: uploadfile
        description: Upload a file
        call: llamacloud-files.uploadfile
        with:
          project_id: rest.project_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: llamacloud-files-mcp
    port: 9090
    transport: http
    description: MCP adapter for LlamaIndex LlamaCloud API — Files. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: upload-file
      description: Upload a file
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: llamacloud-files.uploadfile
      with:
        project_id: tools.project_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.