Kibana · Capability

Kibana APIs — workflows

Kibana APIs — workflows. 26 operations. Lead operation: Bulk delete workflows. Self-contained Naftiko capability covering one Kibana business surface.

Run with Naftiko Kibanaworkflows

What You Can Do

DELETE
Deleteworkflows — Bulk delete workflows
/v1/api/workflows
GET
Getworkflows — Get workflows
/v1/api/workflows
POST
Postworkflows — Bulk create workflows
/v1/api/workflows
GET
Getworkflowsaggs — Get workflow aggregations
/v1/api/workflows/aggs
GET
Getworkflowsconnectors — Get available connectors
/v1/api/workflows/connectors
GET
Getworkflowsexecutionsexecutionid — Get a workflow execution
/v1/api/workflows/executions/{executionid}
POST
Postworkflowsexecutionsexecutionidcancel — Cancel a workflow execution
/v1/api/workflows/executions/{executionid}/cancel
GET
Getworkflowsexecutionsexecutionidchildren — Get child executions
/v1/api/workflows/executions/{executionid}/children
GET
Getworkflowsexecutionsexecutionidlogs — Get execution logs
/v1/api/workflows/executions/{executionid}/logs
POST
Postworkflowsexecutionsexecutionidresume — Resume a workflow execution
/v1/api/workflows/executions/{executionid}/resume
GET
Getworkflowsexecutionsexecutionidstepstepexecutionid — Get a step execution
/v1/api/workflows/executions/{executionid}/step/{stepexecutionid}
POST
Postworkflowsexport — Export workflows
/v1/api/workflows/export
POST
Postworkflowsmget — Get workflows by IDs
/v1/api/workflows/mget
GET
Getworkflowsschema — Get workflow JSON schema
/v1/api/workflows/schema
GET
Getworkflowsstats — Get workflow statistics
/v1/api/workflows/stats
POST
Postworkflowssteptest — Test a workflow step
/v1/api/workflows/step/test
POST
Postworkflowstest — Test a workflow
/v1/api/workflows/test
POST
Postworkflowsworkflow — Create a workflow
/v1/api/workflows/workflow
DELETE
Deleteworkflowsworkflowid — Delete a workflow
/v1/api/workflows/workflow/{id}
GET
Getworkflowsworkflowid — Get a workflow
/v1/api/workflows/workflow/{id}
PUT
Putworkflowsworkflowid — Update a workflow
/v1/api/workflows/workflow/{id}
POST
Postworkflowsworkflowidclone — Clone a workflow
/v1/api/workflows/workflow/{id}/clone
POST
Postworkflowsworkflowidrun — Run a workflow
/v1/api/workflows/workflow/{id}/run
GET
Getworkflowsworkflowworkflowidexecutions — Get workflow executions
/v1/api/workflows/workflow/{workflowid}/executions
POST
Postworkflowsworkflowworkflowidexecutionscancel — Cancel all active workflow executions
/v1/api/workflows/workflow/{workflowid}/executions/cancel
GET
Getworkflowsworkflowworkflowidexecutionssteps — Get workflow step executions
/v1/api/workflows/workflow/{workflowid}/executions/steps

MCP Tools

bulk-delete-workflows

Bulk delete workflows

idempotent
get-workflows

Get workflows

read-only idempotent
bulk-create-workflows

Bulk create workflows

get-workflow-aggregations

Get workflow aggregations

read-only idempotent
get-available-connectors

Get available connectors

read-only idempotent
get-workflow-execution

Get a workflow execution

read-only idempotent
cancel-workflow-execution

Cancel a workflow execution

get-child-executions

Get child executions

read-only idempotent
get-execution-logs

Get execution logs

read-only idempotent
resume-workflow-execution

Resume a workflow execution

get-step-execution

Get a step execution

read-only idempotent
export-workflows

Export workflows

get-workflows-ids

Get workflows by IDs

read-only
get-workflow-json-schema

Get workflow JSON schema

read-only idempotent
get-workflow-statistics

Get workflow statistics

read-only idempotent
test-workflow-step

Test a workflow step

read-only
test-workflow

Test a workflow

read-only
create-workflow

Create a workflow

delete-workflow

Delete a workflow

idempotent
get-workflow

Get a workflow

read-only idempotent
update-workflow

Update a workflow

idempotent
clone-workflow

Clone a workflow

run-workflow

Run a workflow

get-workflow-executions

Get workflow executions

read-only idempotent
cancel-all-active-workflow-executions

Cancel all active workflow executions

get-workflow-step-executions

Get workflow step executions

read-only idempotent

Capability Spec

kibana-workflows.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Kibana APIs — workflows
  description: 'Kibana APIs — workflows. 26 operations. Lead operation: Bulk delete workflows. Self-contained Naftiko capability
    covering one Kibana business surface.'
  tags:
  - Kibana
  - workflows
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KIBANA_API_KEY: KIBANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: kibana-workflows
    baseUri: https://{kibana_url}
    description: Kibana APIs — workflows business capability. Self-contained, no shared references.
    resources:
    - name: api-workflows
      path: /api/workflows
      operations:
      - name: deleteworkflows
        method: DELETE
        description: Bulk delete workflows
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: force
          in: query
          type: boolean
          description: When true, permanently deletes the workflows (hard delete) instead of soft-deleting them. The workflow
            IDs become available for reuse.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: getworkflows
        method: GET
        description: Get workflows
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: query
          in: query
          type: string
          description: Free-text search query.
        - name: size
          in: query
          type: number
          description: Number of results per page.
        - name: page
          in: query
          type: number
          description: Page number.
        - name: enabled
          in: query
          type: array
          description: Filter by enabled state.
        - name: createdBy
          in: query
          type: array
          description: Filter by creator.
        - name: tags
          in: query
          type: array
          description: Filter by tags.
      - name: postworkflows
        method: POST
        description: Bulk create workflows
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: overwrite
          in: query
          type: boolean
          description: Whether to overwrite existing workflows.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-workflows-aggs
      path: /api/workflows/aggs
      operations:
      - name: getworkflowsaggs
        method: GET
        description: Get workflow aggregations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: Field or fields to aggregate on.
          required: true
    - name: api-workflows-connectors
      path: /api/workflows/connectors
      operations:
      - name: getworkflowsconnectors
        method: GET
        description: Get available connectors
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-workflows-executions-executionId
      path: /api/workflows/executions/{executionId}
      operations:
      - name: getworkflowsexecutionsexecutionid
        method: GET
        description: Get a workflow execution
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: executionId
          in: path
          type: string
          description: Workflow execution ID
          required: true
        - name: includeInput
          in: query
          type: boolean
          description: Include execution input data.
        - name: includeOutput
          in: query
          type: boolean
          description: Include execution output data.
    - name: api-workflows-executions-executionId-cancel
      path: /api/workflows/executions/{executionId}/cancel
      operations:
      - name: postworkflowsexecutionsexecutionidcancel
        method: POST
        description: Cancel a workflow execution
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: executionId
          in: path
          type: string
          description: Workflow execution ID
          required: true
    - name: api-workflows-executions-executionId-children
      path: /api/workflows/executions/{executionId}/children
      operations:
      - name: getworkflowsexecutionsexecutionidchildren
        method: GET
        description: Get child executions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: executionId
          in: path
          type: string
          description: Workflow execution ID
          required: true
    - name: api-workflows-executions-executionId-logs
      path: /api/workflows/executions/{executionId}/logs
      operations:
      - name: getworkflowsexecutionsexecutionidlogs
        method: GET
        description: Get execution logs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: executionId
          in: path
          type: string
          description: Workflow execution ID
          required: true
        - name: stepExecutionId
          in: query
          type: string
          description: Filter logs by a specific step execution ID.
        - name: size
          in: query
          type: number
          description: Number of log entries per page.
        - name: page
          in: query
          type: number
          description: Page number.
        - name: sortField
          in: query
          type: string
          description: Field to sort by.
        - name: sortOrder
          in: query
          type: string
          description: Sort order.
    - name: api-workflows-executions-executionId-resume
      path: /api/workflows/executions/{executionId}/resume
      operations:
      - name: postworkflowsexecutionsexecutionidresume
        method: POST
        description: Resume a workflow execution
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: executionId
          in: path
          type: string
          description: Workflow execution ID
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-workflows-executions-executionId-step-stepExecutionId
      path: /api/workflows/executions/{executionId}/step/{stepExecutionId}
      operations:
      - name: getworkflowsexecutionsexecutionidstepstepexecutionid
        method: GET
        description: Get a step execution
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: executionId
          in: path
          type: string
          description: Workflow execution ID.
          required: true
        - name: stepExecutionId
          in: path
          type: string
          description: Step execution ID.
          required: true
    - name: api-workflows-export
      path: /api/workflows/export
      operations:
      - name: postworkflowsexport
        method: POST
        description: Export workflows
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-workflows-mget
      path: /api/workflows/mget
      operations:
      - name: postworkflowsmget
        method: POST
        description: Get workflows by IDs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-workflows-schema
      path: /api/workflows/schema
      operations:
      - name: getworkflowsschema
        method: GET
        description: Get workflow JSON schema
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: loose
          in: query
          type: boolean
          description: When true, returns a permissive schema that allows additional properties. When false, returns a strict
            schema for full validation.
          required: true
    - name: api-workflows-stats
      path: /api/workflows/stats
      operations:
      - name: getworkflowsstats
        method: GET
        description: Get workflow statistics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-workflows-step-test
      path: /api/workflows/step/test
      operations:
      - name: postworkflowssteptest
        method: POST
        description: Test a workflow step
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-workflows-test
      path: /api/workflows/test
      operations:
      - name: postworkflowstest
        method: POST
        description: Test a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-workflows-workflow
      path: /api/workflows/workflow
      operations:
      - name: postworkflowsworkflow
        method: POST
        description: Create a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-workflows-workflow-id
      path: /api/workflows/workflow/{id}
      operations:
      - name: deleteworkflowsworkflowid
        method: DELETE
        description: Delete a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: id
          in: path
          type: string
          description: Workflow ID
          required: true
        - name: force
          in: query
          type: boolean
          description: When true, permanently deletes the workflow (hard delete) instead of soft-deleting it. The workflow
            ID becomes available for reuse.
      - name: getworkflowsworkflowid
        method: GET
        description: Get a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Workflow ID
          required: true
      - name: putworkflowsworkflowid
        method: PUT
        description: Update a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: id
          in: path
          type: string
          description: Workflow ID
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-workflows-workflow-id-clone
      path: /api/workflows/workflow/{id}/clone
      operations:
      - name: postworkflowsworkflowidclone
        method: POST
        description: Clone a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: id
          in: path
          type: string
          description: Workflow ID
          required: true
    - name: api-workflows-workflow-id-run
      path: /api/workflows/workflow/{id}/run
      operations:
      - name: postworkflowsworkflowidrun
        method: POST
        description: Run a workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: id
          in: path
          type: string
          description: Workflow ID
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-workflows-workflow-workflowId-executions
      path: /api/workflows/workflow/{workflowId}/executions
      operations:
      - name: getworkflowsworkflowworkflowidexecutions
        method: GET
        description: Get workflow executions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workflowId
          in: path
          type: string
          description: Workflow ID
          required: true
        - name: statuses
          in: query
          type: array
          description: Filter by execution status.
        - name: executionTypes
          in: query
          type: array
          description: Filter by execution type.
        - name: executedBy
          in: query
          type: array
          description: Filter by the user who triggered the execution.
        - name: omitStepRuns
          in: query
          type: boolean
          description: Whether to exclude step-level execution data.
        - name: page
          in: query
          type: number
          description: Page number.
        - name: size
          in: query
          type: number
          description: Number of results per page.
    - name: api-workflows-workflow-workflowId-executions-cancel
      path: /api/workflows/workflow/{workflowId}/executions/cancel
      operations:
      - name: postworkflowsworkflowworkflowidexecutionscancel
        method: POST
        description: Cancel all active workflow executions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: kbn-xsrf
          in: header
          type: string
          description: A required header to protect against CSRF attacks
          required: true
        - name: workflowId
          in: path
          type: string
          description: Workflow ID
          required: true
    - name: api-workflows-workflow-workflowId-executions-steps
      path: /api/workflows/workflow/{workflowId}/executions/steps
      operations:
      - name: getworkflowsworkflowworkflowidexecutionssteps
        method: GET
        description: Get workflow step executions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workflowId
          in: path
          type: string
          description: Workflow ID
          required: true
        - name: stepId
          in: query
          type: string
          description: Filter by step ID.
        - name: includeInput
          in: query
          type: boolean
          description: Include step input data.
        - name: includeOutput
          in: query
          type: boolean
          description: Include step output data.
        - name: page
          in: query
          type: number
          description: Page number for pagination.
        - name: size
          in: query
          type: number
          description: Number of results per page.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.KIBANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: kibana-workflows-rest
    port: 8080
    description: REST adapter for Kibana APIs — workflows. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/workflows
      name: api-workflows
      description: REST surface for api-workflows.
      operations:
      - method: DELETE
        name: deleteworkflows
        description: Bulk delete workflows
        call: kibana-workflows.deleteworkflows
        with:
          kbn-xsrf: rest.kbn-xsrf
          force: rest.force
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getworkflows
        description: Get workflows
        call: kibana-workflows.getworkflows
        with:
          query: rest.query
          size: rest.size
          page: rest.page
          enabled: rest.enabled
          createdBy: rest.createdBy
          tags: rest.tags
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postworkflows
        description: Bulk create workflows
        call: kibana-workflows.postworkflows
        with:
          kbn-xsrf: rest.kbn-xsrf
          overwrite: rest.overwrite
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/aggs
      name: api-workflows-aggs
      description: REST surface for api-workflows-aggs.
      operations:
      - method: GET
        name: getworkflowsaggs
        description: Get workflow aggregations
        call: kibana-workflows.getworkflowsaggs
        with:
          fields: rest.fields
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/connectors
      name: api-workflows-connectors
      description: REST surface for api-workflows-connectors.
      operations:
      - method: GET
        name: getworkflowsconnectors
        description: Get available connectors
        call: kibana-workflows.getworkflowsconnectors
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/executions/{executionid}
      name: api-workflows-executions-executionid
      description: REST surface for api-workflows-executions-executionId.
      operations:
      - method: GET
        name: getworkflowsexecutionsexecutionid
        description: Get a workflow execution
        call: kibana-workflows.getworkflowsexecutionsexecutionid
        with:
          executionId: rest.executionId
          includeInput: rest.includeInput
          includeOutput: rest.includeOutput
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/executions/{executionid}/cancel
      name: api-workflows-executions-executionid-cancel
      description: REST surface for api-workflows-executions-executionId-cancel.
      operations:
      - method: POST
        name: postworkflowsexecutionsexecutionidcancel
        description: Cancel a workflow execution
        call: kibana-workflows.postworkflowsexecutionsexecutionidcancel
        with:
          kbn-xsrf: rest.kbn-xsrf
          executionId: rest.executionId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/executions/{executionid}/children
      name: api-workflows-executions-executionid-children
      description: REST surface for api-workflows-executions-executionId-children.
      operations:
      - method: GET
        name: getworkflowsexecutionsexecutionidchildren
        description: Get child executions
        call: kibana-workflows.getworkflowsexecutionsexecutionidchildren
        with:
          executionId: rest.executionId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/executions/{executionid}/logs
      name: api-workflows-executions-executionid-logs
      description: REST surface for api-workflows-executions-executionId-logs.
      operations:
      - method: GET
        name: getworkflowsexecutionsexecutionidlogs
        description: Get execution logs
        call: kibana-workflows.getworkflowsexecutionsexecutionidlogs
        with:
          executionId: rest.executionId
          stepExecutionId: rest.stepExecutionId
          size: rest.size
          page: rest.page
          sortField: rest.sortField
          sortOrder: rest.sortOrder
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/executions/{executionid}/resume
      name: api-workflows-executions-executionid-resume
      description: REST surface for api-workflows-executions-executionId-resume.
      operations:
      - method: POST
        name: postworkflowsexecutionsexecutionidresume
        description: Resume a workflow execution
        call: kibana-workflows.postworkflowsexecutionsexecutionidresume
        with:
          kbn-xsrf: rest.kbn-xsrf
          executionId: rest.executionId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/executions/{executionid}/step/{stepexecutionid}
      name: api-workflows-executions-executionid-step-stepexecutionid
      description: REST surface for api-workflows-executions-executionId-step-stepExecutionId.
      operations:
      - method: GET
        name: getworkflowsexecutionsexecutionidstepstepexecutionid
        description: Get a step execution
        call: kibana-workflows.getworkflowsexecutionsexecutionidstepstepexecutionid
        with:
          executionId: rest.executionId
          stepExecutionId: rest.stepExecutionId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/export
      name: api-workflows-export
      description: REST surface for api-workflows-export.
      operations:
      - method: POST
        name: postworkflowsexport
        description: Export workflows
        call: kibana-workflows.postworkflowsexport
        with:
          kbn-xsrf: rest.kbn-xsrf
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/mget
      name: api-workflows-mget
      description: REST surface for api-workflows-mget.
      operations:
      - method: POST
        name: postworkflowsmget
        description: Get workflows by IDs
        call: kibana-workflows.postworkflowsmget
        with:
          kbn-xsrf: rest.kbn-xsrf
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/schema
      name: api-workflows-schema
      description: REST surface for api-workflows-schema.
      operations:
      - method: GET
        name: getworkflowsschema
        description: Get workflow JSON schema
        call: kibana-workflows.getworkflowsschema
        with:
          loose: rest.loose
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/stats
      name: api-workflows-stats
      description: REST surface for api-workflows-stats.
      operations:
      - method: GET
        name: getworkflowsstats
        description: Get workflow statistics
        call: kibana-workflows.getworkflowsstats
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/step/test
      name: api-workflows-step-test
      description: REST surface for api-workflows-step-test.
      operations:
      - method: POST
        name: postworkflowssteptest
        description: Test a workflow step
        call: kibana-workflows.postworkflowssteptest
        with:
          kbn-xsrf: rest.kbn-xsrf
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/test
      name: api-workflows-test
      description: REST surface for api-workflows-test.
      operations:
      - method: POST
        name: postworkflowstest
        description: Test a workflow
        call: kibana-workflows.postworkflowstest
        with:
          kbn-xsrf: rest.kbn-xsrf
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/workflow
      name: api-workflows-workflow
      description: REST surface for api-workflows-workflow.
      operations:
      - method: POST
        name: postworkflowsworkflow
        description: Create a workflow
        call: kibana-workflows.postworkflowsworkflow
        with:
          kbn-xsrf: rest.kbn-xsrf
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/workflow/{id}
      name: api-workflows-workflow-id
      description: REST surface for api-workflows-workflow-id.
      operations:
      - method: DELETE
        name: deleteworkflowsworkflowid
        description: Delete a workflow
        call: kibana-workflows.deleteworkflowsworkflowid
        with:
          kbn-xsrf: rest.kbn-xsrf
          id: rest.id
          force: rest.force
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getworkflowsworkflowid
        description: Get a workflow
        call: kibana-workflows.getworkflowsworkflowid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: putworkflowsworkflowid
        description: Update a workflow
        call: kibana-workflows.putworkflowsworkflowid
        with:
          kbn-xsrf: rest.kbn-xsrf
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/workflow/{id}/clone
      name: api-workflows-workflow-id-clone
      description: REST surface for api-workflows-workflow-id-clone.
      operations:
      - method: POST
        name: postworkflowsworkflowidclone
        description: Clone a workflow
        call: kibana-workflows.postworkflowsworkflowidclone
        with:
          kbn-xsrf: rest.kbn-xsrf
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/workflow/{id}/run
      name: api-workflows-workflow-id-run
      description: REST surface for api-workflows-workflow-id-run.
      operations:
      - method: POST
        name: postworkflowsworkflowidrun
        description: Run a workflow
        call: kibana-workflows.postworkflowsworkflowidrun
        with:
          kbn-xsrf: rest.kbn-xsrf
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/workflow/{workflowid}/executions
      name: api-workflows-workflow-workflowid-executions
      description: REST surface for api-workflows-workflow-workflowId-executions.
      operations:
      - method: GET
        name: getworkflowsworkflowworkflowidexecutions
        description: Get workflow executions
        call: kibana-workflows.getworkflowsworkflowworkflowidexecutions
        with:
          workflowId: rest.workflowId
          statuses: rest.statuses
          executionTypes: rest.executionTypes
          executedBy: rest.executedBy
          omitStepRuns: rest.omitStepRuns
          page: rest.page
          size: rest.size
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/workflow/{workflowid}/executions/cancel
      name: api-workflows-workflow-workflowid-executions-cancel
      description: REST surface for api-workflows-workflow-workflowId-executions-cancel.
      operations:
      - method: POST
        name: postworkflowsworkflowworkflowidexecutionscancel
        description: Cancel all active workflow executions
        call: kibana-workflows.postworkflowsworkflowworkflowidexecutionscancel
        with:
          kbn-xsrf: rest.kbn-xsrf
          workflowId: rest.workflowId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/workflows/workflow/{workflowid}/executions/steps
      name: api-workflows-workflow-workflowid-executions-steps
      description: REST surface for api-workflows-workflow-workflowId-executions-steps.
      operations:
      - method: GET
        name: getworkflowsworkflowworkflowidexecutionssteps
        description: Get workflow step executions
        call: kibana-workflows.getworkflowsworkflowworkflowidexecutionssteps
        with:
          workflowId: rest.workflowId
          stepId: rest.stepId
          includeInput: rest.includeInput
          includeOutput: rest.includeOutput
          page: rest.page
          size: rest.size
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: kibana-workflows-mcp
    port: 9090
    transport: http
    description: MCP adapter for Kibana APIs — workflows. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: bulk-delete-workflows
      description: Bulk delete workflows
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: kibana-workflows.deleteworkflows
      with:
        kbn-xsrf: tools.kbn-xsrf
        force: tools.force
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-workflows
      description: Get workflows
      hints:
        readOnly: true
        destructive: false
        idempotent: true
   

# --- truncated at 32 KB (41 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/kibana/refs/heads/main/capabilities/kibana-workflows.yaml