Usage
Arguments
| Argument | Description |
|---|---|
file | Path to .fig file (required) |
Options
| Option | Alias | Description |
|---|---|---|
--page | Page name (default: first page) | |
--depth | Max depth (default: unlimited) | |
--json | Output as JSON |
Examples
Full tree
Specific page
Limit depth
JSON output
Node Details
The tree shows relevant properties for each node:- Fill — solid color (hex) and opacity if < 100%
- Stroke — stroke color and weight
- Radius — corner radius for rounded shapes
- Font — font size and family for text nodes
- Layout — auto-layout mode (horizontal/vertical), gap, wrap
- Effects — shadows, blurs (with radius)
- Rotation — rotation in degrees
- Opacity — opacity if < 100%
- Blend — blend mode if not normal/pass-through
- Overflow — “hidden” if
clipsContentis true - Visible — false if hidden
- Locked — true if locked
- Component ID — for instances, shows linked component
Format
Each node is formatted as:- Type — lowercase, human-friendly (e.g., “frame” not “FRAME”)
- Name — node name in quotes
- ID — Figma node ID (e.g., “1:2”)
- Properties — key-value pairs in curly braces
Use Cases
- Explore unfamiliar .fig files
- Debug layout issues (check gap/padding values)
- Verify component instance links
- Export structure for documentation
- Generate file manifests for CI