cleanup_jobs
Remove logs, artifacts, and sandbox worktrees for terminal jobs. Force parameter allows cleanup of non-terminal jobs by sending SIGTERM.
Instructions
Remove terminal job logs/artifacts and associated sandbox worktrees. Non-terminal jobs require force=true.
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": {
"job_ids": "<job_ids>"
},
"name": "cleanup_jobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Allow cleanup of non-terminal jobs after sending SIGTERM. | |
| job_ids | Yes |