Skip to main content

Overview

Methods

getWorkflows()

Get all workflows (local + dynamic).
Example:

findByName()

Find a workflow by its base name.
Example:

findById()

Find a workflow by its ID.
Search workflows by query, tags, or labels.
Example:

registerDynamic()

Register a dynamic workflow at runtime.

removeDynamic()

Remove a dynamic workflow.
Returns: true if the workflow was found and removed, false otherwise.

subscribe()

Subscribe to workflow change events.
Returns: Unsubscribe function. Example:

hasAny()

Check if any workflows exist in the registry.

MCP Tools Registered

When the jobs & workflows system is enabled, workflow capabilities are exposed through these MCP tools: Hyphen aliases (list-workflows, execute-workflow, …) still resolve with a deprecation log line for one release — agents and code that hardcoded the old form keep working.

Change Events

The registry emits events when workflows are added, updated, or removed:

Lifecycle