export_preview
Render an .icon bundle preview as PNG with Liquid Glass effects, customizable background and zoom. Falls back to flat composite when Icon Composer is not available.
Instructions
Render a preview of an .icon bundle. Uses Apple's ictool for Liquid Glass rendering by default (falls back to flat composite if Icon Composer is not installed). Supports canvas backgrounds and zoom.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flat | No | Force flat composite rendering (skip ictool/Liquid Glass) | |
| size | No | Output size in pixels | |
| zoom | No | Zoom level — icon size relative to canvas (1.0 = full canvas, 0.5 = half size) | |
| canvas_bg | No | Simple preset canvas background | |
| appearance | No | Appearance mode to preview (omit for default/light) | |
| bundle_path | Yes | Path to .icon bundle | |
| output_path | Yes | Output path for the PNG file | |
| apple_preset | No | Apple Icon Composer preset background (overrides canvas_bg) | |
| return_image | No | Return the rendered image inline as base64 (default true) | |
| canvas_bg_color | No | Custom hex color for canvas background | |
| canvas_bg_image | No | Path to custom background image |