vizcharter_update
Apply a JSON merge patch or full replacement to a diagram's .vizc.json source, then re-render and re-export it to the same location. Returns the updated preview and lint findings.
Instructions
Update an existing diagram from its .vizc.json source. Applies an RFC 7386 JSON merge patch (objects merge recursively, null deletes a key, arrays replace wholesale) or a full replacement, then re-renders and re-exports to the same location. Returns the new preview and lint findings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | No | JSON merge patch to apply | |
| formats | No | Export formats (default: svg, png) | |
| replace | No | Full replacement spec (overrides patch) | |
| source_path | Yes | Path to the diagram's .vizc.json source file |