Skip to main content

Overview

Methods

getJobs()

Get all jobs (local + dynamic).
Example:

findByName()

Find a job by its base name.
Example:

findById()

Find a job by its ID.
Example:
Search jobs by query, tags, or labels.
Example:

registerDynamic()

Register a dynamic job at runtime.
Example:

removeDynamic()

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

subscribe()

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

hasAny()

Check if any jobs exist in the registry.

MCP Tools Registered

When the jobs system is enabled, the registry’s capabilities are exposed through these MCP tools: Hyphen aliases (list-jobs, execute-job, …) 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 jobs are added, updated, or removed:

Lifecycle