Stop a detached command
stop_commandTerminate a detached command and every process it started. Sends SIGTERM, escalates to SIGKILL after 5 seconds, and returns the final history record and output.
Instructions
Stop a detached command. Sends SIGTERM to the command and every process it started, then SIGKILL to what is left after 5 s. Only a process started with detached can be stopped. The response carries the command's history record with its final state and output.
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": {
"sandboxId": "<sandboxId>",
"processId": "<processId>"
},
"name": "stop_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| processId | Yes | Process id returned by a detached command start. | |
| sandboxId | Yes | Public Sandbox id returned by create/list/get sandbox calls. |