Run a job through the queue
queue_runStarts a heavy command such as a test suite or build in a shared job queue and returns a job ID immediately, so agents can continue while the job waits for capacity and runs in isolation.
Instructions
Starts a heavy command (a test suite, a build) through the queue and returns at once with a job id; poll queue_job for its state and output. The job waits for a free slot and an open health gate, runs in a process group of its own under a run limit, and keeps running if this server exits. A test or lint check that already passed on the same clean commit is skipped (outcome skipped) unless noSkip is true. The command is a list of words and is never read by a shell. Job records are kept for 7 days.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"label": "<label>",
"command": "<command>"
},
"name": "queue_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute path of an existing folder to run the command in. Default: the server's folder. | |
| kind | No | Job kind, in place of the one guessed from the label and command. | |
| label | Yes | "<project>: <task>", such as "shop-api: unit tests". | |
| noSkip | No | Run a test or lint check even when it already passed on this commit. | |
| command | Yes | The command and its arguments, one word each, such as ["npm", "test"]. | |
| afterFix | No | A note on what was fixed, to run a check that failed twice on unchanged code. | |
| maxRunMin | No | Run limit for this job in minutes. |