From 4b9572d565f94fb84756e3a2ef5c9479f8b0420f Mon Sep 17 00:00:00 2001 From: YueGuobin Date: Thu, 11 Jun 2026 00:39:37 +0800 Subject: [PATCH] docs: Add SVG shape examples to drawing_create tool description --- gns3server/api/routes/mcp/__init__.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gns3server/api/routes/mcp/__init__.py b/gns3server/api/routes/mcp/__init__.py index 51f4c614a..447aac02e 100644 --- a/gns3server/api/routes/mcp/__init__.py +++ b/gns3server/api/routes/mcp/__init__.py @@ -923,7 +923,15 @@ async def drawing_create( locked: Annotated[bool, Field(description="Lock the drawing (default: false)")] = False, rotation: Annotated[int, Field(description="Rotation angle in degrees, -359 to 359 (default: 0)")] = 0, ) -> list[dict[str, Any]]: - """Create a new drawing (label, shape, or image) on a project canvas.""" + """Create a new drawing (label, shape, or image) on a project canvas. + + SVG examples: + Text label: R1 + Rectangle: + Ellipse: + Line: + Dashed line: + """ return await asyncio.to_thread(_run_handler_sync, create_drawing_handler, { "project_id": project_id, "svg": svg, "x": x, "y": y, "z": z, "locked": locked, "rotation": rotation,