capability_id: workflow.view
version: "1.0.0"
description: View one repository workflow.
input_schema:
  type: object
  required: [owner, name, workflowId]
  properties:
    owner: { type: string, minLength: 1 }
    name: { type: string, minLength: 1 }
    workflowId:
      oneOf:
        - { type: string, minLength: 1 }
        - { type: integer, minimum: 1 }
  additionalProperties: false
output_schema:
  type: object
  required: [id, name, path, state, url]
  properties:
    id: { type: integer, minimum: 0 }
    name: { type: [string, "null"] }
    path: { type: [string, "null"] }
    state: { type: [string, "null"] }
    url: { type: [string, "null"] }
  additionalProperties: false
routing:
  preferred: cli
  fallbacks: []
cli:
  command: workflow view
  jsonFields: [id,name,path,state,url]
