render_view
Render layout geometry to a PNG from a KLayout session and return its absolute path. Overlay annotations and update the session's default view.
Instructions
Render layout geometry to a PNG and return its absolute path.
Arguments given here also update the session's default view (see set_view).
Args:
session_id: Session returned by open_layout.
box: View window in microns. Defaults to the current view.
cell: Cell to render. Defaults to the current view's cell.
layers: Visible layers as [{"layer": int, "datatype": int}].
image_size: Output size in pixels: {"width": int, "height": int}
(default 1200x800).
annotations: Overlays such as
[{"kind": "shape_outline", "target_ids": ["shp_..."], "color": "#ff3b30"}].
Targets must come from query_region on the rendered cell.
style: light, dark, or mask.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | No | ||
| cell | No | ||
| style | No | light | |
| layers | No | ||
| image_size | No | ||
| session_id | Yes | ||
| annotations | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||