Inspect a container
inspect_containerRetrieve a container's image, command, state, exit code, ports, mounts, networks, labels, and environment variable names without exposing secret values.
Instructions
A container's details: image, command, state (with its exit code), ports, mounts, networks and labels, and the names of its environment variables (never their values, which may hold secrets).
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": "<container>"
},
"name": "inspect_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container | Yes | The container's name or id, as its list gives it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| image | Yes | ||
| ports | Yes | ||
| state | Yes | ||
| labels | Yes | ||
| mounts | Yes | ||
| command | Yes | ||
| networks | Yes | ||
| environment | Yes | Variable names only |