Windmill · Capability

Windmill API — draft

Windmill API — draft. 2 operations. Lead operation: Create Draft. Self-contained Naftiko capability covering one Windmill business surface.

Run with Naftiko Windmilldraft

What You Can Do

POST
Createdraft — Create Draft
/v1/w/{workspace}/drafts/create
DELETE
Deletedraft — Delete Draft
/v1/w/{workspace}/drafts/delete/{kind}/{path}

MCP Tools

create-draft

Create Draft

delete-draft

Delete Draft

idempotent

Capability Spec

windmill-draft.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Windmill API — draft
  description: 'Windmill API — draft. 2 operations. Lead operation: Create Draft. Self-contained Naftiko capability covering
    one Windmill business surface.'
  tags:
  - Windmill
  - draft
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WINDMILL_API_KEY: WINDMILL_API_KEY
capability:
  consumes:
  - type: http
    namespace: windmill-draft
    baseUri: ''
    description: Windmill API — draft business capability. Self-contained, no shared references.
    resources:
    - name: w-workspace-drafts-create
      path: /w/{workspace}/drafts/create
      operations:
      - name: createdraft
        method: POST
        description: Create Draft
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: w-workspace-drafts-delete-kind-path
      path: /w/{workspace}/drafts/delete/{kind}/{path}
      operations:
      - name: deletedraft
        method: DELETE
        description: Delete Draft
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kind
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.WINDMILL_API_KEY}}'
  exposes:
  - type: rest
    namespace: windmill-draft-rest
    port: 8080
    description: REST adapter for Windmill API — draft. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/w/{workspace}/drafts/create
      name: w-workspace-drafts-create
      description: REST surface for w-workspace-drafts-create.
      operations:
      - method: POST
        name: createdraft
        description: Create Draft
        call: windmill-draft.createdraft
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/w/{workspace}/drafts/delete/{kind}/{path}
      name: w-workspace-drafts-delete-kind-path
      description: REST surface for w-workspace-drafts-delete-kind-path.
      operations:
      - method: DELETE
        name: deletedraft
        description: Delete Draft
        call: windmill-draft.deletedraft
        with:
          kind: rest.kind
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: windmill-draft-mcp
    port: 9090
    transport: http
    description: MCP adapter for Windmill API — draft. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: create-draft
      description: Create Draft
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: windmill-draft.createdraft
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-draft
      description: Delete Draft
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: windmill-draft.deletedraft
      with:
        kind: tools.kind
      outputParameters:
      - type: object
        mapping: $.