render_preview
Produces a PNG view of an SVG canvas, letting users crop to object IDs or coordinate regions so they can inspect specific artwork before saving or exporting.
Instructions
Render to a PNG image you can look at (white background, longest side = max_size px).
Zoom in with region [x, y, w, h] in user units, or with ids (the area around them, everything
still visible). only_ids=true draws just those objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| area | No | page | |
| doc_id | No | ||
| region | No | ||
| max_size | No | ||
| only_ids | No |