Render preview
render_previewGenerate a flattened PNG preview of a .comp project to visually inspect the composition, optionally saving it to a file while listing non-rendered layers.
Instructions
Flattens the project and returns a PNG preview image so the model can see the composition. Optionally saves it to a file. Clipping masks, adjustment layers and layer effects are not rendered; the response lists what was skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .comp project package (a directory ending in .comp) | |
| maxSize | No | Longest side of the preview in pixels | |
| outputPath | No | If given, also writes the preview (PNG or JPEG by extension) to this path |