extract_assets
Extract all assets from a Figma frame, including icons, images, and composite groups, with automatic categorization and progress tracking.
Instructions
Extract all assets from a frame with progress tracking.
HOW IT WORKS:
Detects "composite groups" (image + decorative shapes) and exports them as single PNG
For composite groups, the ENTIRE group is exported as one image, preserving layout
Automatically categorizes into icons/, images/, and images/composites/
Uses smart naming based on component hierarchy
Shows progress: "Processing batch 1/5 - found 8 icons, 3 images, 2 composites"
Final summary with all file paths
Look for "isCompositeAsset: true" in the frame tree to identify composite groups
TYPICAL WORKFLOW:
get_frame_info → see what assets exist and identify composite groups
extract_assets → download all
Check summary for file paths
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_key | Yes | Figma file key | |
| page_name | Yes | Page name (partial match) | |
| frame_name | Yes | Frame name (partial match) | |
| output_dir | No | Output directory (default: ./figma-assets) | ./figma-assets |