stop_container
Terminate a running container by ID, either gracefully or forcefully, to shut down workloads or free resources.
Instructions
Gracefully or forcefully terminate a container.
In Apple Container 1.7.1+, `container list` hides `cluster` nodes even with `--all`,
and `start`, `stop`, `kill`, and `delete` report named cluster nodes as not found
(`inspect`, `logs`, `exec`, `stats`, and `clean` continue to work on named cluster
nodes).
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 |
|---|---|---|---|
| force | No | ||
| container_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |