Copy Node IDs
Export dash-separated nodeId JSON (parent→child) from selection; copy to clipboard.
Plugin Preview
About this plugin
Copy Node IDs - Figma Plugin
🎯 Overview
A Figma plugin that extracts node information from selected layers in AI-friendly hierarchical JSON format. Optimized for design system analysis, automation tool development, and integration with AI tools (Claude, Cursor, etc.).
🚀 Key Features
1. Hierarchical Structure Output
Outputs selected nodes in a clear parent-child tree structure. Instead of flat arrays, the nested structure enables AI to accurately understand design hierarchies.
2. Flexible Depth Control
- All descendants: Captures all descendant elements completely (default)
- Custom depth (1-10): Specify the desired hierarchy level
- Level 1: Direct children only
- Level 2: Including grandchildren
- Level 3+: Deeper structures
3. Intelligent Selection Processing
When multiple layers are selected, automatically organizes overlapping parent-child relationships and outputs from optimal root nodes.
4. Following the official recommended method
As described below, the more it is divided, the better the accuracy becomes.
📊 Output Format
Single Node Selection
Multiple Node Selection
💡 Use Cases
1. AI-Driven Design with Figma MCP
- Using the extracted JSON structure, create a new button component similar to nodeId: 123:457
- Based on the Header Component hierarchy, generate a responsive mobile version
- Duplicate the Navigation structure (nodeId: 123:458) and adapt it for a dark theme
- Create variations of all text nodes within this component with different font sizes
2. Design System Analysis
- Understand component structures
- Verify nesting depth
- Check naming convention consistency
3. Documentation Generation
- Document component hierarchies
- Visualize design complexity
- Share structures across teams
🎨 Supported Node Types
- FRAME - Frames, Artboards
- GROUP - Groups
- COMPONENT - Component definitions
- INSTANCE - Component instances
- TEXT - Text layers
- RECTANGLE, ELLIPSE - Shapes
- VECTOR - Vector paths
- All other Figma node types
Using the Plugin
- Select - Select target layers in Figma
- Set Depth - Choose "All descendants" or "Custom depth"
- Collect - Click "Collect Node IDs" button
- Copy - Get JSON with "Copy to Clipboard"
- Utilize - Use in AI tools, scripts, or documentation
🚦 Workflow
- Select one or more layers in Figma
- Run the plugin (Plugins → Development → Copy Node IDs)
- Choose depth mode:
- All descendants: Complete recursive tree (default)
- Custom depth: Specify levels (1-10)
- Click "Collect Node IDs"
- Click "Copy to Clipboard" to get the JSON
🎯 Ideal Scenarios
- AI-Driven Development: Integration with Claude MCP, ChatGPT, GitHub Copilot
- Design Operations: Managing large-scale design systems
- Quality Control: Checking structural consistency and naming conventions
- Documentation: Automatic generation of technical specifications
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
https://github.com/te19oishi/copy-node-ids
📄 License
MIT
---
Copy Node IDs is a powerful tool that bridges design and development. Especially when combined with AI tools, it enables automation and efficiency in design workflows.
Plugin Details
| Version | 1 |
|---|---|
| Created | August 24, 2025 |
| Last Updated | August 24, 2025 |
| Category | Software development |
| Creator | Hinata Oishi |
| Stats | 29 installs, 4 likes |
| Pricing | Free |
Technical Details
- API:1.0.0
- UI:dist/ui.html
- main:dist/code.js
- Document Access:dynamic-page
- Editor Types:figma
- Allowed Domains:
- none
More Like This
Discover other plugins in the Software development category.
Figma to Code (HTML, Tailwind, Flutter, SwiftUI)
Code Conversion Made Easy: Figma to Web & Apps
Builder.io - Figma to Code & AI Apps (React, Vue, Tailwind, etc)
Export designs to clean, responsive code or turn Figma screens into AI apps and prototypes.
SkewDat
Skew any layer or group with all layers preserved to edit.