start_background_job
Start a command as a background job and retrieve a job ID to monitor its status.
Instructions
[Command Execution] Start a command as a background job
Example usage:
{
"shell": "powershell",
"command": "Start-Sleep -Seconds 30; Write-Output 'Done'",
"timeout": 60
}Returns job ID immediately. Use get_job_status to monitor progress.
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": {
"shell": "<shell>",
"command": "<command>"
},
"name": "start_background_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Custom environment variables for command execution (optional) | |
| shell | Yes | Shell to use for command execution | |
| command | Yes | Command to execute | |
| timeout | No | Job timeout in seconds (default: 300, max: 3600) |