Create diagramERASER_MCP_CREATE_DIAGRAM
PREFERRED for creating a diagram from a natural-language prompt — Eraser's AI picks the diagram type, generates the DSL, and renders it.
DO NOT pre-classify the user's request into a diagram type yourself. Pass `text` only (plus destination params) and LEAVE `diagramType` UNSET unless the user EXPLICITLY named a type (e.g. 'make this a sequence diagram', 'use a cloud architecture diagram'). Eraser's render service has type-specific heuristics and will pick a better type from the prompt than your guess will, especially on ambiguous asks like 'show how X works' or 'diagram the architecture'.
BEFORE calling this tool, if the user has not already specified the destination, ASK them these questions (skip any the user has already answered):
1. 'Should I create a new file for this diagram, or add it to an existing file?' — if existing, ask which fileId (or use one they just referenced).
2. If NEW file: 'Should the file be private (just for you) or shared with your team in a folder?'
3. If shared in a folder: 'Which folder?' (or offer to place it at the team root).
Do NOT call list_folders or get_folder to invent a destination yourself — ask the user. Pick destination params based on the answers:
- Existing file → pass targetFileId
- New private file → omit targetFileId, omit folderId, do NOT set isTeamFile
- New shared file at team root → omit targetFileId, omit folderId, set isTeamFile: true
- New shared file in a folder → omit targetFileId, pass folderId (this implies shared)
Returns the new diagram's id in the `diagrams[].id` field so a follow-up update_diagram/manually_update_diagram call does NOT need a list_diagrams round-trip. Prefer over manually_create_diagram unless you already have hand-written DSL/JSON.