Design Export PNG
design_export_pngRasterize Claude Design boards to PNG via local headless Chrome for icons and store layouts. Use the render_preview serve_url with target width, height, and scale.
Instructions
Rasterize a Claude Design board to PNG with local headless Chrome.
Use when: icon (B01-AppIcon 1024x1024 to design/icon.png) or store layout boards (440x956, scale 3). serve_url comes from claude-design render_preview and is used once. Returns: {ok, path, width, height}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Device scale factor (default 1; use 3 for store boards). | |
| width | Yes | Viewport width in CSS pixels, e.g. 1024 for the icon board or 440 for a store board. | |
| height | Yes | Viewport height in CSS pixels, e.g. 1024 for the icon board or 956 for a store board. | |
| out_path | Yes | Output file path (PNG). | |
| serve_url | Yes | Temporary serve_url from claude-design render_preview; used once, never stored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||