fix(mcp): rename display_diagram to create_new_diagram (#449)

Rename tool to be less ambiguous and help AI models correctly
provide the required xml parameter on subsequent calls.

Closes #445
This commit is contained in:
Dayuan Jiang
2025-12-29 15:15:13 +09:00
committed by GitHub
parent 30b30550d9
commit c2aa7f49be
3 changed files with 58 additions and 18 deletions

View File

@@ -97,7 +97,7 @@ Use the standard MCP configuration with:
| Tool | Description |
|------|-------------|
| `start_session` | Opens browser with real-time diagram preview |
| `display_diagram` | Create a new diagram from XML |
| `create_new_diagram` | Create a new diagram from XML (requires `xml` argument) |
| `edit_diagram` | Edit diagram by ID-based operations (update/add/delete cells) |
| `get_diagram` | Get the current diagram XML |
| `export_diagram` | Save diagram to a `.drawio` file |