The OpenPencil CLI provides headless access to .fig file operations — inspect, search, analyze, and render design files from the command line.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/open-pencil/open-pencil/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Quick Start
Available Commands
| Command | Description |
|---|---|
info | Show document info (pages, node counts, fonts) |
tree | Print the node tree |
find | Find nodes by name or type |
node | Show detailed properties of a specific node by ID |
pages | List all pages with node counts |
variables | List design variables and collections |
export | Export to PNG, JPG, or WEBP |
analyze | Analyze design tokens and patterns |
eval | Execute JavaScript with Figma plugin API |
JSON Output
All commands support--json for machine-readable output:
Output Formatting
CLI output uses agentfmt for consistent, readable formatting:- Hierarchical trees with unicode line drawing
- Histograms with visual bars
- Entity formatting (type, name, ID)
- Key-value pairs
- Color-coded summaries