From 05f12e1f15d0acfe3d914f5d60a9489950e7eb1d Mon Sep 17 00:00:00 2001 From: YueGuobin Date: Thu, 11 Jun 2026 01:42:27 +0800 Subject: [PATCH] docs: Clarify image_prune description - only removes unreferenced images --- gns3server/api/routes/mcp/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gns3server/api/routes/mcp/__init__.py b/gns3server/api/routes/mcp/__init__.py index 34b889483..0bf40c131 100644 --- a/gns3server/api/routes/mcp/__init__.py +++ b/gns3server/api/routes/mcp/__init__.py @@ -1174,7 +1174,12 @@ async def image_delete( @mcp.tool() async def image_prune() -> list[dict[str, Any]]: - """Remove all unused images from the server to free up disk space.""" + """Remove images not referenced by any template. + + NOTE: Only images that are not used by any template will be removed. + If all images are still referenced by templates, no images are deleted. + Use image_list to see which images exist and check if they are in use. + """ return await asyncio.to_thread(_run_handler_sync, prune_images_handler, {})