inspect_image
Analyze a Docker image's build history, layers, sizes, and commands to diagnose image bloat and container-host issues.
Instructions
[READ] Inspect an image plus its build history (layers, sizes, commands).
Args: image_id: Image id or name:tag. 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": {
"image_id": "<image_id>"
},
"name": "inspect_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| image_id | Yes |