Docling · Capability

Docling CLI — Convert

Docling command-line conversion. 1 operation wrapping the `docling` CLI as an HTTP-shaped capability so agent runtimes can invoke local document conversion.

Docling CLI — Convert is a Naftiko capability published by Docling, one of 3 capabilities the APIs.io network indexes for this provider. It bundles 1 operation across the POST method rooted at /v1/convert.

The capability includes 1 state-changing operation. Lead operation: Convert A Document Via The Docling CLI. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Docling, Documents, and CLI.

Run with Naftiko DoclingDocumentsCLI

What You Can Do

POST
Cliconvert — Convert A Document Via The Docling CLI
/v1/convert

MCP Tools

docling-cli-convert

Convert A Document Via The Docling CLI

Capability Spec

docling-cli-convert.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Docling CLI — Convert
  description: 'Docling command-line conversion. 1 operation wrapping the `docling` CLI as an HTTP-shaped capability so
    agent runtimes can invoke local document conversion.'
  tags:
  - Docling
  - Documents
  - CLI
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    DOCLING_BIN: DOCLING_BIN
capability:
  consumes:
  - type: shell
    namespace: docling-cli-convert
    description: Invoke the local `docling` CLI. The shell consumer treats each operation as a process invocation.
    resources:
    - name: docling
      path: '{{env.DOCLING_BIN}}'
      operations:
      - name: cliconvert
        method: EXEC
        description: Convert A Document Via The Docling CLI
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: source
          in: arg
          type: string
          description: File path, directory, or HTTP(S) URL to convert.
          required: true
        - name: to_formats
          in: flag
          type: array
          description: Repeated --to flag values.
        - name: output
          in: flag
          type: string
          description: Output directory (--output).
        - name: ocr
          in: flag
          type: boolean
        - name: ocr_engine
          in: flag
          type: string
        - name: table_mode
          in: flag
          type: string
        - name: pipeline
          in: flag
          type: string
        - name: vlm_model
          in: flag
          type: string
    authentication:
      type: none
      placement: header
  exposes:
  - type: rest
    namespace: docling-cli-convert-rest
    port: 8080
    description: REST adapter that maps `POST /v1/convert` to a CLI invocation.
    resources:
    - path: /v1/convert
      name: docling-cli-convert
      description: REST surface for the docling CLI.
      operations:
      - method: POST
        name: cliconvert
        description: Convert A Document Via The Docling CLI
        call: docling-cli-convert.cliconvert
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: docling-cli-convert-mcp
    port: 9090
    transport: http
    description: MCP adapter exposing the docling CLI as a single tool.
    tools:
    - name: docling-cli-convert
      description: Convert A Document Via The Docling CLI
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: docling-cli-convert.cliconvert
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.