Remove an image
remove_imageDeletes a local Docker image, with optional force removal when a stopped container uses it; the server confirms before deleting and does nothing if declined.
Instructions
Remove a local image (with force, even if a stopped container uses it). It has to be pulled or built again to be used. The server asks the person to confirm it, naming what goes; if they say no, nothing is done.
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": "<image>"
},
"name": "remove_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| image | Yes | The image's name or id, as its list gives it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| removed | Yes |