capability_id: workflow.dispatch
version: "1.0.0"
description: Trigger a workflow dispatch event.
input_schema:
  type: object
  required: [owner, name, workflowId, ref]
  properties:
    owner: { type: string, minLength: 1 }
    name: { type: string, minLength: 1 }
    workflowId: { type: string, minLength: 1 }
    ref: { type: string, minLength: 1 }
    inputs:
      type: object
      additionalProperties:
        type: [string, number, boolean]
  additionalProperties: false
output_schema:
  type: object
  required: [workflowId, ref, dispatched]
  properties:
    workflowId: { type: string, minLength: 1 }
    ref: { type: string, minLength: 1 }
    dispatched: { type: boolean }
  additionalProperties: false
routing:
  preferred: cli
  fallbacks: []
cli:
  command: api
