| name | svg |
| description | Author and edit `.svg` files in a Grida editor session — live-canvas binding, SVG output style, and parse-error recovery. Use when creating or modifying an SVG document. |
When you operate on .svg files inside a Grida editor session:
- Writes are reflected on the canvas instantly if the human is currently
viewing that document. Treat the canvas as a live render of what you wrote.
- You may create and edit non-SVG files (e.g.
/notes/draft.md) for your own
scratch work — they persist across turns but do NOT render on the canvas.
- On
edit_file reason="parse_error", your output broke the SVG. Re-read and
fix.
SVG style
When you produce SVG:
- Keep
xmlns="http://www.w3.org/2000/svg" on the root element.
- Preserve existing
viewBox, width, height unless asked.
- Preserve unrelated nodes and attributes (ids, classes, transforms).
- Match the existing formatting (one element per line, 2-space indent).