Image Prune Tool
image_prune_toolRemove unused Podman images to reclaim storage. By default deletes only dangling, untagged images; supports filters and --all to clear all images not used by containers.
Instructions
Remove unused images, like podman image prune.
With no arguments only dangling (untagged, unused) images are removed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "image_prune_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Remove every image not used by a container, not just dangling ones (--all) | |
| filters | No | Limit what is pruned (--filter). Keys: "until" (images built before a timestamp or Go duration, e.g. {"until": ["168h"]}; compares the build date, not when the image was pulled or tagged), "label" / "label!" (e.g. {"label": ["stage=ci"]}), "dangling" (["true"] or ["false"]) | |
| external | No | Also remove images used only by external containers, e.g. build containers (--external) | |
| build_cache | No | Also remove the persistent build cache from --mount=type=cache (--build-cache) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||