GitBook · Capability

GitBook API — Imports

GitBook API — Imports. 1 operations. Lead operation: GitBook Import content to a space. Self-contained Naftiko capability covering one Gitbook business surface.

Run with Naftiko GitbookImports

What You Can Do

POST
Importcontenttospace — GitBook Import content to a space
/v1/spaces/{spaceid}/import/content

MCP Tools

gitbook-import-content-space

GitBook Import content to a space

Capability Spec

gitbook-imports.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitBook API — Imports
  description: 'GitBook API — Imports. 1 operations. Lead operation: GitBook Import content to a space. Self-contained Naftiko
    capability covering one Gitbook business surface.'
  tags:
  - Gitbook
  - Imports
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITBOOK_API_KEY: GITBOOK_API_KEY
capability:
  consumes:
  - type: http
    namespace: gitbook-imports
    baseUri: https://api.gitbook.com/v1
    description: GitBook API — Imports business capability. Self-contained, no shared references.
    resources:
    - name: spaces-spaceId-import-content
      path: /spaces/{spaceId}/import/content
      operations:
      - name: importcontenttospace
        method: POST
        description: GitBook Import content to a space
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.GITBOOK_API_KEY}}'
  exposes:
  - type: rest
    namespace: gitbook-imports-rest
    port: 8080
    description: REST adapter for GitBook API — Imports. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/spaces/{spaceid}/import/content
      name: spaces-spaceid-import-content
      description: REST surface for spaces-spaceId-import-content.
      operations:
      - method: POST
        name: importcontenttospace
        description: GitBook Import content to a space
        call: gitbook-imports.importcontenttospace
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gitbook-imports-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitBook API — Imports. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: gitbook-import-content-space
      description: GitBook Import content to a space
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gitbook-imports.importcontenttospace
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.