naftiko: 1.0.0-alpha2 info: label: LittleHorse REST API — User Tasks description: 'LittleHorse REST API — User Tasks. 3 operations. Lead operation: Get a user task run. Self-contained Naftiko capability covering one Littlehorse business surface.' tags: - Littlehorse - User Tasks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LITTLEHORSE_API_KEY: LITTLEHORSE_API_KEY capability: consumes: - type: http namespace: littlehorse-user-tasks baseUri: '' description: LittleHorse REST API — User Tasks business capability. Self-contained, no shared references. resources: - name: wfRun-wfRunId-userTaskRun-userTaskRunId path: /wfRun/{wfRunId}/userTaskRun/{userTaskRunId} operations: - name: getusertaskrun method: GET description: Get a user task run outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: wfRunId in: path type: string required: true - name: userTaskRunId in: path type: string required: true - name: wfRun-wfRunId-userTaskRun-userTaskRunId-assign path: /wfRun/{wfRunId}/userTaskRun/{userTaskRunId}/assign operations: - name: assignusertask method: POST description: Assign a user task outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: wfRunId in: path type: string required: true - name: userTaskRunId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: wfRun-wfRunId-userTaskRun-userTaskRunId-complete path: /wfRun/{wfRunId}/userTaskRun/{userTaskRunId}/complete operations: - name: completeusertask method: POST description: Complete a user task outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: wfRunId in: path type: string required: true - name: userTaskRunId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true exposes: - type: rest namespace: littlehorse-user-tasks-rest port: 8080 description: REST adapter for LittleHorse REST API — User Tasks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/wfrun/{wfrunid}/usertaskrun/{usertaskrunid} name: wfrun-wfrunid-usertaskrun-usertaskrunid description: REST surface for wfRun-wfRunId-userTaskRun-userTaskRunId. operations: - method: GET name: getusertaskrun description: Get a user task run call: littlehorse-user-tasks.getusertaskrun with: wfRunId: rest.wfRunId userTaskRunId: rest.userTaskRunId outputParameters: - type: object mapping: $. - path: /v1/wfrun/{wfrunid}/usertaskrun/{usertaskrunid}/assign name: wfrun-wfrunid-usertaskrun-usertaskrunid-assign description: REST surface for wfRun-wfRunId-userTaskRun-userTaskRunId-assign. operations: - method: POST name: assignusertask description: Assign a user task call: littlehorse-user-tasks.assignusertask with: wfRunId: rest.wfRunId userTaskRunId: rest.userTaskRunId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/wfrun/{wfrunid}/usertaskrun/{usertaskrunid}/complete name: wfrun-wfrunid-usertaskrun-usertaskrunid-complete description: REST surface for wfRun-wfRunId-userTaskRun-userTaskRunId-complete. operations: - method: POST name: completeusertask description: Complete a user task call: littlehorse-user-tasks.completeusertask with: wfRunId: rest.wfRunId userTaskRunId: rest.userTaskRunId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: littlehorse-user-tasks-mcp port: 9090 transport: http description: MCP adapter for LittleHorse REST API — User Tasks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-user-task-run description: Get a user task run hints: readOnly: true destructive: false idempotent: true call: littlehorse-user-tasks.getusertaskrun with: wfRunId: tools.wfRunId userTaskRunId: tools.userTaskRunId outputParameters: - type: object mapping: $. - name: assign-user-task description: Assign a user task hints: readOnly: false destructive: false idempotent: false call: littlehorse-user-tasks.assignusertask with: wfRunId: tools.wfRunId userTaskRunId: tools.userTaskRunId body: tools.body outputParameters: - type: object mapping: $. - name: complete-user-task description: Complete a user task hints: readOnly: false destructive: false idempotent: false call: littlehorse-user-tasks.completeusertask with: wfRunId: tools.wfRunId userTaskRunId: tools.userTaskRunId body: tools.body outputParameters: - type: object mapping: $.