With emma's Figma integration, you can access files, export images, manage comments, and retrieve component information. Streamline your design workflow with powerful automation.
Features
Figma_Operator supports the following 11 tools:
Category
Tools
Files
5
Tool Name
Description
figma_get_file
Get file structure and metadata
figma_get_file_nodes
Get details of specific nodes in a file
figma_export_images
Export nodes as images
figma_get_file_versions
Get file version history
figma_get_project_files
Get files in a project
Comments
2
Tool Name
Description
figma_get_comments
Get comments on a file
figma_post_comment
Post a comment on a file
Components
2
Tool Name
Description
figma_get_component_sets
Get component sets in a file
figma_get_styles
Get styles in a file
Other
2
Tool Name
Description
figma_get_me
Get authenticated user info
figma_get_team_projects
Get team projects
Main Parameters
Parameter
Description
file_key
Figma file key
node_ids
Node IDs to target
format
Export format (png, jpg, svg, pdf)
team_id
Team ID
Prerequisites
• emma account
• Figma account
• Figma access token
Setup
1. Install the package
npm install @duzzle/figma-integration
2. Initialize
import { DuzzleFigma } from '@duzzle/figma-integration';
const figma = new DuzzleFigma({
apiKey: process.env.DUZZLE_API_KEY,
figmaToken: process.env.FIGMA_ACCESS_TOKEN
});
3. Get File
// Get file structure and metadata
const file = await figma.getFile({
file_key: 'abc123xyz'
});
console.log('File name:', file.name);
console.log('Components:', file.components);