Clean up Docker
pruneRemove stopped containers, dangling images, unused networks, volumes, and build cache to reclaim disk space; irreversible and confirmed first.
Instructions
Remove what isn't in use: stopped containers, dangling images (all unused ones with allImages), unused networks, unused volumes (only when volumes is true: their data is gone) and the build cache. Says how much space it freed. Can't be undone. 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": {
"what": "<what>"
},
"name": "prune"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| what | Yes | everything: containers, networks, dangling images and build cache (volumes only with volumes: true) | |
| volumes | No | everything: also unused volumes and their data | |
| allImages | No | Images: every unused one, not only the dangling ones |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | ||
| truncated | Yes |