stop_container
Stop a running container gracefully with a timeout, preview via dry-run, and record prior state for undo.
Instructions
[WRITE][risk=medium] Stop a running container. Inverse: start it.
Captures whether it was running so the harness records a start undo. Pass dry_run=True to preview.
Args: container_id: Container id or name. timeout: Seconds to wait for graceful stop before killing (default 10). dry_run: If True, preview without stopping. target: Target name from config; omit for the default.
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": {
"container_id": "<container_id>"
},
"name": "stop_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| timeout | No | ||
| container_id | Yes |