Overview
Methods
getJobs()
Get all jobs (local + dynamic).| Parameter | Type | Default | Description |
|---|---|---|---|
includeHidden | boolean | false | Include hidden jobs in results |
findByName()
Find a job by its base name.findById()
Find a job by its ID.search()
Search jobs by query, tags, or labels.registerDynamic()
Register a dynamic job at runtime.removeDynamic()
Remove a dynamic job.true if the job was found and removed, false otherwise.
subscribe()
Subscribe to job change events.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:| Tool | Description |
|---|---|
list-jobs | List all registered jobs with optional filtering |
execute-job | Execute a job by name (inline or background) |
get-job-status | Get execution status by runId |
register-job | Register a dynamic job with JavaScript source |
remove-job | Remove a dynamic job |