Bundle image fills as data URIs
bundle_image_fillsFetches image fills from a Figma file and converts them into data URIs with metadata, skipping assets over a size limit. Ideal for design-to-code workflows needing local image access.
Instructions
Design-to-code helper: GET /v1/files/{key}/images then download each fill (Figma/S3 hosts only). Returns imageRef → { contentType, byteLength, dataUri }. Skips assets over max_bytes (default 250KB). Not canvas mutation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Figma file key or URL (figma.com/design/... or figma.com/file/...) | |
| max_bytes | No | ||
| image_refs | No | Optional imageRef filter (comma-separated or array). | |
| max_assets | No |