run
Launch a single non-interactive command as a durable job, returning either the finished result or a detached job handle for longer tasks. Use when you need to execute a command and, if it runs long, retrieve the job ID to wait on later.
Instructions
Default tool for starting one non-interactive command of uncertain duration.
Every command is a durable Job from launch. Commands that finish within the inline timeout return their ordinary bounded result. Longer or queued work returns a detached Job handle without cancelling the workload. Omit queue to use an operator-configured default queue for the selected target.
Do not use this tool for explicit fire-and-forget or batch fan-out; use submit_job. Do not use it when an MCP Tasks handle is explicitly required; use run_job. Do not use it to resume an existing job_id; wait for or inspect that job instead. If a detached handle is returned, keep its job_id and call wait_for_job once when the result is needed rather than polling status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| host | No | ||
| name | No | ||
| queue | No | ||
| backend | No | ||
| command | Yes | ||
| artifacts | No | ||
| resources | No | ||
| capture_logs | No | ||
| slurm_options | No | ||
| timeout_seconds | No | ||
| client_request_id | No | ||
| stall_timeout_seconds | No | ||
| inline_timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||