Acciones disponibles (49)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Add a comment to a fileFIGMA_ADD_A_COMMENT_TO_A_FILEAcciónPosts a new comment to a figma file or branch, optionally replying to an existing root comment (replies cannot be nested); `region height` and `region width` in `client meta` must be positive if defining a comment region.
FIGMA_ADD_A_COMMENT_TO_A_FILEAcciónPosts a new comment to a figma file or branch, optionally replying to an existing root comment (replies cannot be nested); `region height` and `region width` in `client meta` must be positive if defining a comment region.
Parámetros de entrada
messagestringObligatorioText content of the comment.
file_keystringObligatorioIdentifier for the Figma file or branch. Can be a file key or a branch key (use `GET /v1/files/:key` with `branch_data` to get a branch key).
comment_idstringID of an existing root comment to reply to. Replies cannot be made to other replies.
client_metaobjectOptional. Dictionary specifying the comment's position (e.g., absolute canvas coordinates, relative to a node, or a region defined with dimensions and positioning). If omitted, Figma determines a default position.
Parámetros de salida
dataobjectObligatorioFull details of the successfully posted comment.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Add a reaction to a commentFIGMA_ADD_A_REACTION_TO_A_COMMENTAcciónPosts a specified emoji reaction to an existing comment in a figma file or branch, requiring valid file key and comment id.
FIGMA_ADD_A_REACTION_TO_A_COMMENTAcciónPosts a specified emoji reaction to an existing comment in a figma file or branch, requiring valid file key and comment id.
Parámetros de entrada
emojistringObligatorioThe emoji to use for the reaction, specified as a shortcode (e.g., `:heart:`, `:+1::skin-tone-2:`). For a comprehensive list of accepted emoji shortcodes, including aliases and skin tone modifiers, refer to the file linked here: [https://raw.githubusercontent.com/missive/emoji-mart/main/packages/emoji-mart-data/sets/14/native.json](https://raw.githubusercontent.com/missive/emoji-mart/main/packages/emoji-mart-data/sets/14/native.json).
file_keystringObligatorioIdentifier of the Figma file or branch to which the comment reaction will be posted. This can be a file key (e.g., from the file URL) or a branch key. Use the `GET /v1/files/:key` endpoint with the `branch_data=true` query parameter to obtain the branch key if needed.
comment_idstringObligatorioThe unique identifier of the comment to which the reaction should be added.
Parámetros de salida
dataobjectObligatorioContains the response data from the API, typically including the status of the operation.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a webhookFIGMA_CREATE_A_WEBHOOKAcciónCreates a figma webhook for a `team id` to send post notifications for an `event type` to a publicly accessible https `endpoint`; an initial ping is sent unless `status` is `paused`.
FIGMA_CREATE_A_WEBHOOKAcciónCreates a figma webhook for a `team id` to send post notifications for an `event type` to a publicly accessible https `endpoint`; an initial ping is sent unless `status` is `paused`.
Parámetros de entrada
statusstringenumInitial status. `VAL_ACTIVE` (default): webhook is operational and receives initial `PING`. `VAL_PAUSED`: webhook is inactive, no initial `PING`; requires later activation to receive events.
ACTIVEPAUSEDteam_idstringObligatorioIdentifier of the Figma team for which this webhook monitors events.
endpointstringObligatorioPublicly accessible HTTPS URL (max 2048 chars) that receives POST requests from Figma for the `event_type`.
passcodestringObligatorioSecret string (max 100 chars) included in requests to your `endpoint` for verifying Figma's origin.
event_typestringObligatorioenumType of event that triggers the webhook.
FILE_COMMENTFILE_DELETEFILE_UPDATEFILE_VERSION_UPDATELIBRARY_PUBLISHPINGdescriptionstringOptional user-defined description for the webhook (max 150 chars), useful for identification and management.
Parámetros de salida
dataobjectObligatorioFull details of the successfully created webhook.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create dev resourcesFIGMA_CREATE_DEV_RESOURCESAcciónCreates and attaches multiple uniquely-urled development resources to specified figma nodes, up to 10 per node.
FIGMA_CREATE_DEV_RESOURCESAcciónCreates and attaches multiple uniquely-urled development resources to specified figma nodes, up to 10 per node.
Parámetros de entrada
dev_resourcesobject[]ObligatorioList of development resources to create.
Parámetros de salida
dataobjectObligatorioSuccessfully created dev resources and any errors.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create, modify, or delete variablesFIGMA_CREATE_MODIFY_DELETE_VARIABLESAcciónManages variables, collections, modes, and their values in a figma file via batch create/update/delete operations; use temporary ids to link new related items in one request and ensure `variablemodevalues` match the target variable's `resolvedtype`.
FIGMA_CREATE_MODIFY_DELETE_VARIABLESAcciónManages variables, collections, modes, and their values in a figma file via batch create/update/delete operations; use temporary ids to link new related items in one request and ensure `variablemodevalues` match the target variable's `resolvedtype`.
Parámetros de entrada
file_keystringObligatorioThe key of the Figma file or branch to modify variables in. Use `GET /v1/files/:key` with the `branch_data=true` query parameter to obtain a branch key.
variablesobject[]List of operations for variables, each a dict with 'action' ('CREATE', 'UPDATE', 'DELETE'). For 'CREATE', include 'variableCollectionId', 'name', 'resolvedType' (temp 'id' optional). For 'UPDATE', 'id' and fields to modify. For 'DELETE', 'id'. See Figma API's `VariableMutation` for details.
variableModesobject[]List of operations for modes, each a dict with 'action' ('CREATE', 'UPDATE', 'DELETE'). For 'CREATE', include 'variableCollectionId', 'name' (temp 'id' optional). For 'UPDATE', 'id' and 'name'. For 'DELETE', 'id'. See Figma API's `VariableModeMutation` for details.
variableModeValuesobject[]A list of specific values to set for variables in particular modes. Each item links a variable and a mode to a new value.
variableCollectionsobject[]List of operations for variable collections, each a dict with 'action' ('CREATE', 'UPDATE', 'DELETE'). For 'CREATE', include 'name' (temp 'id' optional). For 'UPDATE', 'id' and fields to modify. For 'DELETE', 'id'. See Figma API's `VariableCollectionMutation` for details.
Parámetros de salida
dataobjectObligatorioThe main part of the response, containing status, error indication, and metadata from the operation.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a commentFIGMA_DELETE_A_COMMENTAcciónDeletes a specific comment from a figma file or branch, provided the authenticated user is the original author of the comment.
FIGMA_DELETE_A_COMMENTAcciónDeletes a specific comment from a figma file or branch, provided the authenticated user is the original author of the comment.
Parámetros de entrada
file_keystringObligatorioThe key of the Figma file or branch from which the comment will be deleted. This can be a file key (typically found in the file's URL) or a branch key. To obtain a branch key, use the `GET /v1/files/:key` endpoint with the `branch_data` query parameter.
comment_idstringObligatorioThe unique string identifier of the comment to be deleted. This ID is specific to the comment within the Figma file.
Parámetros de salida
dataobjectObligatorioContains the outcome of the comment deletion attempt, including status and error indicators.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a reactionFIGMA_DELETE_A_REACTIONAcciónDeletes a specific emoji reaction from a comment in a figma file; the user must have originally created the reaction.
FIGMA_DELETE_A_REACTIONAcciónDeletes a specific emoji reaction from a comment in a figma file; the user must have originally created the reaction.
Parámetros de entrada
emojistringObligatorioThe specific emoji character (e.g., '❤️', '👍') of the reaction to delete. This must be an exact match to the emoji of an existing reaction on the comment.
file_keystringObligatorioKey of the file or branch containing the comment reaction to be deleted. The file key can be obtained from the file URL or API responses. To get a branch key, use the `GET /v1/files/:key` endpoint with the `branch_data` query parameter.
comment_idstringObligatorioIdentifier of the comment from which the reaction will be removed. This ID is specific to the comment within the Figma file.
Parámetros de salida
dataobjectObligatorioContains the result of the delete operation, including status and error information.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete a webhookFIGMA_DELETE_A_WEBHOOKAcciónPermanently deletes an existing webhook, identified by its unique `webhook id`; this operation is irreversible.
FIGMA_DELETE_A_WEBHOOKAcciónPermanently deletes an existing webhook, identified by its unique `webhook id`; this operation is irreversible.
Parámetros de entrada
webhook_idstringObligatorioThe unique identifier of the webhook to be deleted.
Parámetros de salida
dataobjectObligatorioContains the details of the webhook that was successfully deleted.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete dev resourceFIGMA_DELETE_DEV_RESOURCEAcciónDeletes a development resource (used to link figma design elements to external developer information like code or tasks) from a specified figma file.
FIGMA_DELETE_DEV_RESOURCEAcciónDeletes a development resource (used to link figma design elements to external developer information like code or tasks) from a specified figma file.
Parámetros de entrada
file_keystringObligatorioIdentifier of the Figma file from which to delete the dev resource. Must be a main file key, not a branch key.
dev_resource_idstringObligatorioIdentifier of the dev resource to delete from the file.
Parámetros de salida
dataobjectObligatorioAPI response dictionary; typically an empty object confirms successful deletion.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Design tokens to tailwindFIGMA_DESIGN_TOKENS_TO_TAILWINDAcciónConvert design tokens to tailwind css configuration. takes the output from extractdesigntokens and generates: - tailwind.config.ts/js with theme extensions - optional globals.css with font imports note: shadow colors can be provided in either string format (e.g., "rgba(15, 110, 110, 0.32)") or dictionary format (e.g., {"r": 0.059, "g": 0.431, "b": 0.431, "a": 0.32}).
FIGMA_DESIGN_TOKENS_TO_TAILWINDAcciónConvert design tokens to tailwind css configuration. takes the output from extractdesigntokens and generates: - tailwind.config.ts/js with theme extensions - optional globals.css with font imports note: shadow colors can be provided in either string format (e.g., "rgba(15, 110, 110, 0.32)") or dictionary format (e.g., {"r": 0.059, "g": 0.431, "b": 0.431, "a": 0.32}).
Parámetros de entrada
prefixstringPrefix for generated token names (e.g., 'brand-')
tokensobjectObligatorioDesign tokens to convert
config_formatstringOutput format: 'ts' for TypeScript or 'js' for JavaScript
include_font_importsbooleanInclude @import statements for Google Fonts
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Detect backgroundFIGMA_DETECT_BACKGROUNDAcciónDetect background layers for selected nodes. uses geometric analysis, z-index ordering, and visual properties to identify potential background layers.
FIGMA_DETECT_BACKGROUNDAcciónDetect background layers for selected nodes. uses geometric analysis, z-index ordering, and visual properties to identify potential background layers.
Parámetros de entrada
file_keystringObligatorioThe Figma file key
search_depthintegerHow many levels up to search for backgrounds
target_node_idsstring[]ObligatorioList of node IDs to find backgrounds for
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Discover Figma ResourcesFIGMA_DISCOVER_FIGMA_RESOURCESAcción🔍 smart figma resource discovery - never guess ids again! 🎯 easiest method: just paste any figma url to get all ids: • file urls: https://www.figma.com/file/abc123/design → get file key • design urls: https://www.figma.com/design/abc123/design → get file key • node urls: ...?node-id=123:456 → get file key + node id • team urls: .../team/123456/... → get team id 🔄 step-by-step discovery: 1. team id → projects list (with project ids) 2. project id → files list (with file keys + thumbnails) 3. file key → nodes list (with node ids + hierarchy) 💡 common workflows: • extract from url: discoverfigmaresources(figma url="...") • browse team: discoverfigmaresources(team id="123") • list files: discoverfigmaresources(project id="proj 456") • find nodes: discoverfigmaresources(file key="abc123") ✨ get file key for getfilejson, node ids for detectbackground, etc.
FIGMA_DISCOVER_FIGMA_RESOURCESAcción🔍 smart figma resource discovery - never guess ids again! 🎯 easiest method: just paste any figma url to get all ids: • file urls: https://www.figma.com/file/abc123/design → get file key • design urls: https://www.figma.com/design/abc123/design → get file key • node urls: ...?node-id=123:456 → get file key + node id • team urls: .../team/123456/... → get team id 🔄 step-by-step discovery: 1. team id → projects list (with project ids) 2. project id → files list (with file keys + thumbnails) 3. file key → nodes list (with node ids + hierarchy) 💡 common workflows: • extract from url: discoverfigmaresources(figma url="...") • browse team: discoverfigmaresources(team id="123") • list files: discoverfigmaresources(project id="proj 456") • find nodes: discoverfigmaresources(file key="abc123") ✨ get file key for getfilejson, node ids for detectbackground, etc.
Parámetros de entrada
team_idstringTeam ID to list all projects from. Get this from team URL: https://www.figma.com/files/team/YOUR_TEAM_ID/Team-Name. Returns list of projects with IDs and names.
file_keystringFile key to extract all node IDs from. Get this from file URL (figma.com/file/FILE_KEY/...) or from project files list. Returns hierarchical list of all nodes with IDs, names, types, and paths.
figma_urlstringFull Figma URL to extract file_key, node_id, and team_id from. Works with any Figma URL format: • File: https://www.figma.com/file/ABC123/Design-Name • Design: https://www.figma.com/design/ABC123/Design-Name • With node: https://www.figma.com/file/ABC123/Design?node-id=123:456 • Team: https://www.figma.com/files/team/123456/Team-Name This is the easiest way to get all IDs you need!
max_depthintegerMaximum tree depth to traverse when discovering nodes. 2=pages+frames, 3=pages+frames+components, etc. Higher values find more nodes but take longer.
project_idstringProject ID to list all files from. Get this from project URL or from team projects list. Returns files with keys, names, and thumbnails.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download Figma ImagesFIGMA_DOWNLOAD_FIGMA_IMAGESAcciónDownload images from figma file nodes. renders specified nodes as images and downloads them using mercury's filedownloadable infrastructure. supports png, svg, jpg, and pdf formats.
FIGMA_DOWNLOAD_FIGMA_IMAGESAcciónDownload images from figma file nodes. renders specified nodes as images and downloads them using mercury's filedownloadable infrastructure. supports png, svg, jpg, and pdf formats.
Parámetros de entrada
scalenumberImage scaling factor (0.01 to 4, default 2 for retina)
imagesobject[]ObligatorioList of images to download
file_keystringObligatorioFigma file key from URL
svg_include_idbooleanInclude element IDs in SVG
svg_outline_textbooleanConvert text to paths in SVG for accuracy
svg_simplify_strokebooleanSimplify strokes in SVG
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Extract design tokensFIGMA_EXTRACT_DESIGN_TOKENSAcciónExtract design tokens from figma files. combines styles, variables, and extracted values to create a comprehensive design token system.
FIGMA_EXTRACT_DESIGN_TOKENSAcciónExtract design tokens from figma files. combines styles, variables, and extracted values to create a comprehensive design token system.
Parámetros de entrada
file_keystringObligatorioThe Figma file key
include_variablesbooleanInclude variables in extraction
extract_from_nodesbooleanExtract tokens from node properties
include_local_stylesbooleanInclude local styles in extraction
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Extract Prototype InteractionsFIGMA_EXTRACT_PROTOTYPE_INTERACTIONSAcciónExtract prototype interactions and animations from figma files. analyzes the prototype data to extract: - user interactions (clicks, hovers, etc.) - transition animations - component variant states - user flows and navigation
FIGMA_EXTRACT_PROTOTYPE_INTERACTIONSAcciónExtract prototype interactions and animations from figma files. analyzes the prototype data to extract: - user interactions (clicks, hovers, etc.) - transition animations - component variant states - user flows and navigation
Parámetros de entrada
file_keystringObligatorioFigma file key from URL
analyze_componentsbooleanExtract component variant states
include_animationsbooleanInclude detailed animation data
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get activity logsFIGMA_GET_ACTIVITY_LOGSAcciónRetrieves activity log events from figma, allowing filtering by event types, time range, and pagination.
FIGMA_GET_ACTIVITY_LOGSAcciónRetrieves activity log events from figma, allowing filtering by event types, time range, and pagination.
Parámetros de entrada
limitintegerMaximum number of events per response, for pagination. If unspecified, defaults to 1000.
orderstringenumSort order for events by timestamp.
ascdesceventsstringComma-separated event types to include. If unspecified, all event types are returned. Refer to Figma's API documentation for a comprehensive list.
end_timeintegerUnix timestamp for the latest time for events. If unspecified, defaults to the current timestamp.
start_timeintegerUnix timestamp for the earliest time for events. If unspecified, defaults to one year ago.
Parámetros de salida
dataobjectObligatorioerrorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get a webhookFIGMA_GET_A_WEBHOOKAcciónRetrieves detailed information about a specific webhook by its id, provided the webhook exists and is accessible to the user.
FIGMA_GET_A_WEBHOOKAcciónRetrieves detailed information about a specific webhook by its id, provided the webhook exists and is accessible to the user.
Parámetros de entrada
webhook_idstringObligatorioThe unique identifier of the webhook to retrieve.
Parámetros de salida
dataobjectObligatorioContains the detailed information of the retrieved webhook.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get comments in a fileFIGMA_GET_COMMENTS_IN_A_FILEAcciónRetrieves all comments from an existing figma file, identified by a valid `file key`, returning details like content, author, position, and reactions, with an option for markdown formatted content.
FIGMA_GET_COMMENTS_IN_A_FILEAcciónRetrieves all comments from an existing figma file, identified by a valid `file key`, returning details like content, author, position, and reactions, with an option for markdown formatted content.
Parámetros de entrada
as_mdbooleanIf true, comment content will be returned in Markdown format where applicable (e.g., for links, bold text). Defaults to false, returning rich text structure.
file_keystringObligatorioIdentifier for the Figma file from which to retrieve comments. This can be a file key (a unique string identifying a file) or a branch key. To obtain a branch key, use the `GET /v1/files/:key` endpoint with the `branch_data` query parameter.
Parámetros de salida
dataobjectObligatorioWrapper object containing the list of comments.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get componentFIGMA_GET_COMPONENTAcciónGet component data with automatic simplification. returns clean, ai-friendly component structure.
FIGMA_GET_COMPONENTAcciónGet component data with automatic simplification. returns clean, ai-friendly component structure.
Parámetros de entrada
node_idstringObligatorioID of the component node
file_keystringObligatorioFile key that contains the component
simplifybooleanAutomatically simplify response (recommended)
Parámetros de salida
dataobjectObligatorioerrorstringError if any occurred during the execution of the action
simplifiedbooleanObligatoriosuccessfulbooleanObligatorioWhether or not the action execution was successful or not
Get component setFIGMA_GET_COMPONENT_SETAcciónRetrieves detailed metadata for a specific published figma component set using its unique `key`.
FIGMA_GET_COMPONENT_SETAcciónRetrieves detailed metadata for a specific published figma component set using its unique `key`.
Parámetros de entrada
keystringObligatorioThe unique identifier of the component set.
Parámetros de salida
dataobjectObligatorioThe main data payload of the response, containing details of the component set.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get current userFIGMA_GET_CURRENT_USERAcciónRetrieves detailed information for the currently authenticated figma user.
FIGMA_GET_CURRENT_USERAcciónRetrieves detailed information for the currently authenticated figma user.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataobjectObligatorioDetailed information of the currently authenticated user.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get dev resourcesFIGMA_GET_DEV_RESOURCESAcciónRetrieves development resources (e.g., jira/github links) for a figma main file, optionally filtering by specific node ids.
FIGMA_GET_DEV_RESOURCESAcciónRetrieves development resources (e.g., jira/github links) for a figma main file, optionally filtering by specific node ids.
Parámetros de entrada
file_keystringObligatorioThe unique identifier of the Figma design file from which to retrieve development resources. This must be the key for a main file, not a branch key.
node_idsstringA comma-separated string of node IDs. If provided, the response will be filtered to include only development resources linked to these specific nodes. If omitted or `null`, all development resources in the file will be returned.
Parámetros de salida
dataobjectObligatorioThe object containing the list of development resources.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get file componentsFIGMA_GET_FILE_COMPONENTSAcciónRetrieves published components from a figma file, which must be a main file (not a branch) acting as a library.
FIGMA_GET_FILE_COMPONENTSAcciónRetrieves published components from a figma file, which must be a main file (not a branch) acting as a library.
Parámetros de entrada
file_keystringObligatorioKey of the Figma file. This file must be a main file (not a branch key) that acts as a library, as components are published from main files.
Parámetros de salida
dataobjectObligatorioStructured API response detailing retrieved components and request outcome.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get file component setsFIGMA_GET_FILE_COMPONENT_SETSAcciónRetrieves all published component sets from the specified figma main file (file key must not be for a branch).
FIGMA_GET_FILE_COMPONENT_SETSAcciónRetrieves all published component sets from the specified figma main file (file key must not be for a branch).
Parámetros de entrada
file_keystringObligatorioKey of the Figma file. Must be a main file key (not a branch key) as component sets are published from main files.
Parámetros de salida
dataobjectObligatorioThe structured response data from the API, including status, error information, and the list of component sets.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get file jsonFIGMA_GET_FILE_JSONAcciónGet figma file data with automatic simplification. this enhanced version automatically transforms verbose figma json into clean, ai-friendly format with: - css-like property names - deduplicated variables - removed empty values - 70%+ size reduction use simplify=false to get raw api response.
FIGMA_GET_FILE_JSONAcciónGet figma file data with automatic simplification. this enhanced version automatically transforms verbose figma json into clean, ai-friendly format with: - css-like property names - deduplicated variables - removed empty values - 70%+ size reduction use simplify=false to get raw api response.
Parámetros de entrada
idsstringComma-separated node IDs to fetch specific nodes
depthintegerTree traversal depth (e.g., 2 for pages and top-level children)
versionstringSpecific version ID; current version if omitted
file_keystringObligatorioFigma file key from URL (figma.com/file/{file_key}/...)
geometrystringSet to "paths" to include vector data
simplifybooleanAutomatically simplify response for AI (recommended)
branch_databooleanInclude branch metadata
include_rawbooleanInclude raw API response alongside simplified data
plugin_datastringComma-separated plugin IDs to include plugin data
Parámetros de salida
dataobjectObligatorioSimplified Figma file data (or raw if simplify=False)
errorstringError if any occurred during the execution of the action
raw_dataobjectRaw API response (only if include_raw=True)
simplifiedbooleanObligatorioWhether the data was simplified
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get files in a projectFIGMA_GET_FILES_IN_A_PROJECTAcciónFetches a list of files in a figma project, optionally including branch metadata.
FIGMA_GET_FILES_IN_A_PROJECTAcciónFetches a list of files in a figma project, optionally including branch metadata.
Parámetros de entrada
project_idstringObligatorioIdentifier of the Figma project, typically found in its URL.
branch_databooleanIf true, includes metadata for branches of main files.
Parámetros de salida
dataobjectObligatorioContains the project's details, including its name and a list of its associated files.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get file stylesFIGMA_GET_FILE_STYLESAcciónRetrieves a list of published styles (like colors, text attributes, effects, and layout grids) from a specified main figma file (not a branch).
FIGMA_GET_FILE_STYLESAcciónRetrieves a list of published styles (like colors, text attributes, effects, and layout grids) from a specified main figma file (not a branch).
Parámetros de entrada
file_keystringObligatorioKey of the main Figma file (not a branch) from which to retrieve styles.
Parámetros de salida
dataobjectObligatorioStructured response data.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get image fillsFIGMA_GET_IMAGE_FILLSAcciónRetrieves temporary (14-day expiry) download urls for all image fills in a figma file; requires `imageref` from `paint` objects to map urls.
FIGMA_GET_IMAGE_FILLSAcciónRetrieves temporary (14-day expiry) download urls for all image fills in a figma file; requires `imageref` from `paint` objects to map urls.
Parámetros de entrada
file_keystringObligatorioIdentifier of the Figma file or branch from which to retrieve image fill URLs. This can be a file key (obtained from the file's URL) or a branch key.
Parámetros de salida
dataobjectObligatorioContains the mapping of image references to their download URLs, along with response status information.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get library analytics component action dataFIGMA_GET_LIBRARY_ANALYTICS_COMPONENT_ACTION_DATAAcciónRetrieves component insertion and detachment analytics for a specified figma library, groupable by 'component' or 'team' and filterable by a date range (yyyy-mm-dd).
FIGMA_GET_LIBRARY_ANALYTICS_COMPONENT_ACTION_DATAAcciónRetrieves component insertion and detachment analytics for a specified figma library, groupable by 'component' or 'team' and filterable by a date range (yyyy-mm-dd).
Parámetros de entrada
cursorstringOpaque cursor for pagination, from a previous response's `cursor` field; omit for the first page.
end_datestringEnd date (YYYY-MM-DD) for analytics. Data includes up to end of this date's week. Defaults to latest computed week.
file_keystringObligatorioUnique identifier (key) of the Figma library file to retrieve analytics data from.
group_bystringObligatorioenumDimension to group analytics: 'component' or 'team'.
componentteamstart_datestringStart date (YYYY-MM-DD) for analytics. Data includes from start of this date's week. Defaults to one year prior.
Parámetros de salida
dataobjectObligatorioThe structured library analytics data.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get library analytics component usage dataFIGMA_GET_LIBRARY_ANALYTICS_COMPONENT_USAGE_DATAAcciónRetrieves component usage analytics for a specified figma library file (identified by `file key`), with data groupable by 'component' or 'file'.
FIGMA_GET_LIBRARY_ANALYTICS_COMPONENT_USAGE_DATAAcciónRetrieves component usage analytics for a specified figma library file (identified by `file key`), with data groupable by 'component' or 'file'.
Parámetros de entrada
cursorstringOpaque string for pagination to fetch the next page of data, obtained from a previous response.
file_keystringObligatorioUnique identifier (key) of the Figma library file.
group_bystringObligatorioenumDimension to group analytics data, affecting the response `rows` structure.
componentfile
Parámetros de salida
dataobjectObligatorioThe analytics results, including usage rows and pagination information.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get library analytics style action dataFIGMA_GET_LIBRARY_ANALYTICS_STYLE_ACTION_DATAAcciónRetrieves style usage analytics (insertions, detachments) for a figma library, grouped by 'style' or 'team'; if providing a date range, ensure end date is not before start date.
FIGMA_GET_LIBRARY_ANALYTICS_STYLE_ACTION_DATAAcciónRetrieves style usage analytics (insertions, detachments) for a figma library, grouped by 'style' or 'team'; if providing a date range, ensure end date is not before start date.
Parámetros de entrada
cursorstringOpaque cursor for pagination, from a previous response's `cursor` field to fetch the next page; omit for first page.
end_datestringEnd date for the analytics data range (YYYY-MM-DD). Data includes up to the end of this date's week. Defaults to the most recently computed week if unspecified.
file_keystringObligatorioUnique identifier (key) of the Figma library.
group_bystringObligatorioenumDimension by which to group the library style analytics data.
styleteamstart_datestringStart date for the analytics data range (YYYY-MM-DD). Data includes from the start of this date's week. Defaults to one year prior if unspecified.
Parámetros de salida
dataobjectObligatorioStructured analytics data, including rows, `next_page` flag, and `cursor` for pagination if applicable.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get library analytics style usage dataFIGMA_GET_LIBRARY_ANALYTICS_STYLE_USAGE_DATAAcciónRetrieves style usage analytics for a figma library (specified by a valid `file key`), allowing data to be grouped by 'file' or 'style'.
FIGMA_GET_LIBRARY_ANALYTICS_STYLE_USAGE_DATAAcciónRetrieves style usage analytics for a figma library (specified by a valid `file key`), allowing data to be grouped by 'file' or 'style'.
Parámetros de entrada
cursorstringAn opaque string cursor from a previous response, used for paginating through results. If not provided, the first page is returned.
file_keystringObligatorioThe unique key of the Figma library for which to retrieve style usage analytics.
group_bystringObligatorioenumDimension by which to group analytics data, determining the structure of 'rows' in the response.
filestyle
Parámetros de salida
dataobjectObligatorioContains the structured analytics data, pagination information, and the actual usage rows.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get library analytics variable action dataFIGMA_GET_LIBRARY_ANALYTICS_VARIABLE_ACTION_DATAAcciónRetrieves weekly, paginated analytics data on variable insertions and detachments for a specified figma library (identified by `file key`), groupable by 'variable' or 'team', and filterable by an optional date range.
FIGMA_GET_LIBRARY_ANALYTICS_VARIABLE_ACTION_DATAAcciónRetrieves weekly, paginated analytics data on variable insertions and detachments for a specified figma library (identified by `file key`), groupable by 'variable' or 'team', and filterable by an optional date range.
Parámetros de entrada
cursorstringOpaque cursor for pagination from a previous response; omit or use null for the first page.
end_datestringEnd date (YYYY-MM-DD) for the analytics range. Data is aggregated weekly; this date rounds to the nearest week end. Defaults to the latest computed week if unspecified.
file_keystringObligatorioUnique identifier (key) of the Figma file (library) for which to retrieve variable analytics data.
group_bystringObligatorioenumDimension to group analytics data, which determines the structure of `rows` in the response.
teamvariablestart_datestringStart date (YYYY-MM-DD) for the analytics range. Data is aggregated weekly; this date rounds to the nearest week start. Defaults to one year prior if unspecified.
Parámetros de salida
dataobjectObligatorioStructured response with paginated library analytics data for variable actions.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get library analytics variable usage dataFIGMA_GET_LIBRARY_ANALYTICS_VARIABLE_USAGE_DATAAcciónRetrieves paginated analytics data on variable usage from a specified figma library, grouped by 'file' or 'variable', for libraries with enabled analytics.
FIGMA_GET_LIBRARY_ANALYTICS_VARIABLE_USAGE_DATAAcciónRetrieves paginated analytics data on variable usage from a specified figma library, grouped by 'file' or 'variable', for libraries with enabled analytics.
Parámetros de entrada
cursorstringOpaque cursor for pagination, from a previous response's `cursor` field if `next_page` was true. Omit for the first page.
file_keystringObligatorioKey of the Figma library file (from its URL) for which to retrieve variable usage analytics.
group_bystringObligatorioenumDimension for grouping analytics data, determining the structure of `rows` in the response ('file' or 'variable').
filevariable
Parámetros de salida
dataobjectObligatorioPaginated analytics data for variable usage from the specified library.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get local variablesFIGMA_GET_LOCAL_VARIABLESAcciónRetrieves all local/remote variables for a figma file/branch; crucial for obtaining mode-specific values which `/v1/files/{file key}/variables/published` omits.
FIGMA_GET_LOCAL_VARIABLESAcciónRetrieves all local/remote variables for a figma file/branch; crucial for obtaining mode-specific values which `/v1/files/{file key}/variables/published` omits.
Parámetros de entrada
file_keystringObligatorioKey of the Figma file or branch. Can be a standard file key or a branch-specific key (to obtain a branch key, use `GET /v1/files/:key` with the `branch_data` query parameter).
Parámetros de salida
dataobjectObligatorioThe structured response data containing the status, error indicator, and the local variables metadata.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get paymentsFIGMA_GET_PAYMENTSAcciónRetrieves a user's payment information for a figma plugin, widget, or community file; the authenticated identity must own the resource.
FIGMA_GET_PAYMENTSAcciónRetrieves a user's payment information for a figma plugin, widget, or community file; the authenticated identity must own the resource.
Parámetros de entrada
user_idintegerID of the user whose payment information is sought. Obtain via OAuth2 with Figma REST API. Required if `plugin_payment_token` is not provided.
plugin_idintegerID of the plugin. Obtain from its manifest or Community page URL (number after 'plugin/'). If `user_id` is provided, specify exactly one of `community_file_id`, `plugin_id`, or `widget_id`.
widget_idintegerID of the widget. Obtain from its manifest or Community page URL (number after 'widget/'). If `user_id` is provided, specify exactly one of `community_file_id`, `plugin_id`, or `widget_id`.
community_file_idintegerID of the Community file. Obtain from its Community page URL (number after 'file/'). If `user_id` is provided, specify exactly one of `community_file_id`, `plugin_id`, or `widget_id`.
plugin_payment_tokenstringShort-lived auth token from `getPluginPaymentTokenAsync` (Figma Plugin Payments API). See Figma docs 'Calling the Payments REST API...'. If provided, `user_id` and resource IDs are typically not needed.
Parámetros de salida
dataobjectObligatorioContains the detailed payment information for the user and resource, including status, error, and metadata.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get projects in a teamFIGMA_GET_PROJECTS_IN_A_TEAMAcciónRetrieves projects within a specified figma team that are visible to the authenticated user.
FIGMA_GET_PROJECTS_IN_A_TEAMAcciónRetrieves projects within a specified figma team that are visible to the authenticated user.
Parámetros de entrada
team_idstringObligatorioIdentifier of the Figma team from which to list projects. Note: The `team_id` cannot be programmatically obtained solely from a user token. To find a `team_id`, navigate to a team page you are a member of in Figma. The `team_id` will be present in the URL, typically formatted as `https://www.figma.com/files/team/YOUR_TEAM_ID/Your_Team_Name`.
Parámetros de salida
dataobjectObligatorioContains the team's name and its list of associated projects.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get published variablesFIGMA_GET_PUBLISHED_VARIABLESAcciónRetrieves variables published from a specified figma file; this api is available only to full members of enterprise organizations.
FIGMA_GET_PUBLISHED_VARIABLESAcciónRetrieves variables published from a specified figma file; this api is available only to full members of enterprise organizations.
Parámetros de entrada
file_keystringObligatorioThe key of the Figma file from which to retrieve published variables. This must be a main file's key, not a branch key, as publishing from branches is not supported.
Parámetros de salida
dataobjectObligatorioThe structured response data containing status, error information, and the metadata of published variables.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get reactions for a commentFIGMA_GET_REACTIONS_FOR_A_COMMENTAcciónRetrieves reactions for a specific comment in a figma file.
FIGMA_GET_REACTIONS_FOR_A_COMMENTAcciónRetrieves reactions for a specific comment in a figma file.
Parámetros de entrada
cursorstringPagination cursor from `next_page` of a previous response. Omit or use null for the first page.
file_keystringObligatorioKey for the Figma file or branch. Can be a file key (from URL) or a branch key. To get a branch key, use `GET /v1/files/:key` with the `branch_data` query parameter.
comment_idstringObligatorioIdentifier of the comment.
Parámetros de salida
dataobjectObligatorioContains the list of reactions and pagination details.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get styleFIGMA_GET_STYLEAcciónRetrieves detailed metadata for a specific style in figma using its unique style key.
FIGMA_GET_STYLEAcciónRetrieves detailed metadata for a specific style in figma using its unique style key.
Parámetros de entrada
keystringObligatorioThe unique identifier (key) of the style to retrieve. Style keys are typically prefixed with 'S:'.
Parámetros de salida
dataobjectObligatorioThe main data payload of the response, encapsulating the style's status, error state, and metadata.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get team componentsFIGMA_GET_TEAM_COMPONENTSAcciónRetrieves components published in a specific figma team's library; the team must have published components, otherwise an empty list is returned.
FIGMA_GET_TEAM_COMPONENTSAcciónRetrieves components published in a specific figma team's library; the team must have published components, otherwise an empty list is returned.
Parámetros de entrada
afterintegerOpaque cursor indicating the point after which to retrieve components. Used for pagination. Exclusive with the `before` parameter. The cursor value is an internally tracked integer that doesn't correspond to any specific Figma IDs.
beforeintegerOpaque cursor indicating the point before which to retrieve components. Used for pagination. Exclusive with the `after` parameter. The cursor value is an internally tracked integer that doesn't correspond to any specific Figma IDs.
team_idstringObligatorioIdentifier of the Figma team from which to retrieve published components.
page_sizeintegerNumber of components to return per page.
Parámetros de salida
dataobjectObligatorioThe main data payload of the response, including status, error indicator, and the retrieved components along with pagination cursors.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get team component setsFIGMA_GET_TEAM_COMPONENT_SETSAcciónRetrieves a paginated list of published component sets (collections of reusable ui elements) from a specified figma team's library.
FIGMA_GET_TEAM_COMPONENT_SETSAcciónRetrieves a paginated list of published component sets (collections of reusable ui elements) from a specified figma team's library.
Parámetros de entrada
afterintegerCursor for pagination, indicating the point after which to retrieve component sets. Exclusive with the 'before' parameter. The cursor value is an internally tracked integer and does not correspond to any specific Figma IDs.
beforeintegerCursor for pagination, indicating the point before which to retrieve component sets. Exclusive with the 'after' parameter. The cursor value is an internally tracked integer and does not correspond to any specific Figma IDs.
team_idstringObligatorioThe unique identifier of the team from which to list component sets.
page_sizeintegerNumber of component sets to return in a single page.
Parámetros de salida
dataobjectObligatorioThe structured response from the API, containing the status, error indicator, and the metadata which includes component sets and pagination cursors.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get team stylesFIGMA_GET_TEAM_STYLESAcciónRetrieves a paginated list of published styles, such as colors or text attributes, from a specified figma team's library.
FIGMA_GET_TEAM_STYLESAcciónRetrieves a paginated list of published styles, such as colors or text attributes, from a specified figma team's library.
Parámetros de entrada
afterintegerOpaque integer cursor to retrieve styles after this point; use `cursor.after` from a previous response. Exclusive with `before`.
beforeintegerOpaque integer cursor to retrieve styles before this point; use `cursor.before` from a previous response. Exclusive with `after`.
team_idstringObligatorioIdentifier of the team to retrieve published styles from.
page_sizeintegerNumber of style items to return per page.
Parámetros de salida
dataobjectObligatorioThe main container for the response, including status, error indication, and the metadata which holds the styles and pagination cursors.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get team webhooksFIGMA_GET_TEAM_WEBHOOKSAcciónRetrieves all webhooks registered for a specified figma team.
FIGMA_GET_TEAM_WEBHOOKSAcciónRetrieves all webhooks registered for a specified figma team.
Parámetros de entrada
team_idstringObligatorioIdentifier of the team for which to retrieve webhooks.
Parámetros de salida
dataobjectObligatorioAn object containing the list of webhooks for the team.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get versions of a fileFIGMA_GET_VERSIONS_OF_A_FILEAcciónRetrieves the version history for a figma file or branch, as specified by its `file key`.
FIGMA_GET_VERSIONS_OF_A_FILEAcciónRetrieves the version history for a figma file or branch, as specified by its `file key`.
Parámetros de entrada
afterintegerVersion ID for pagination; retrieves versions created strictly after this ID.
beforeintegerVersion ID for pagination; retrieves versions created strictly before this ID.
file_keystringObligatorioThe key of the file or branch from which to retrieve the version history. For branch keys, use `GET /v1/files/:key` with the `branch_data` query param to obtain it.
page_sizeintegerNumber of version items per page. The API defaults to 30 if this parameter is not sent.
Parámetros de salida
dataobjectObligatorioThe main response data, containing the list of file versions and pagination information.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get webhook requestsFIGMA_GET_WEBHOOK_REQUESTSAcciónRetrieves a history of webhook requests for a specific figma webhook subscription; data is available for requests sent within the last seven days.
FIGMA_GET_WEBHOOK_REQUESTSAcciónRetrieves a history of webhook requests for a specific figma webhook subscription; data is available for requests sent within the last seven days.
Parámetros de entrada
webhook_idstringObligatorioThe unique identifier of the Figma webhook subscription for which to retrieve past event requests. This refers to the ID of the webhook itself, not an individual event.
Parámetros de salida
dataobjectObligatorioContains the list of webhook requests detailing past event deliveries for the specified webhook.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Render images of file nodesFIGMA_RENDER_IMAGES_OF_FILE_NODESAcciónRenders specified nodes from a figma file as images (jpg, pdf, png, svg), returning a map of node ids to image urls (or `null` for failed nodes); images expire after 30 days and are capped at 32 megapixels (larger requests are scaled down).
FIGMA_RENDER_IMAGES_OF_FILE_NODESAcciónRenders specified nodes from a figma file as images (jpg, pdf, png, svg), returning a map of node ids to image urls (or `null` for failed nodes); images expire after 30 days and are capped at 32 megapixels (larger requests are scaled down).
Parámetros de entrada
idsstringObligatorioComma-separated list of node IDs to render as images (e.g., '1:2,1:3,1:4').
scaleintegerImage scaling factor, a number between 0.01 and 4 (e.g., 2 renders at twice original size).
formatstringenumDesired output format for the rendered images.
jpgpdfpngsvgversionstringSpecific version ID of the file to render; if omitted, the current version is used.
file_keystringObligatorioKey of the Figma file or branch. To obtain a branch key, use the `GET /v1/files/:key` endpoint with the `branch_data=true` query parameter.
contents_onlybooleanIf true, excludes content overlapping node boundaries. If false, includes overlapping content (may increase processing time).
svg_include_idboolean(SVG format only) If true, includes `id` attributes (using layer name) for all SVG elements.
svg_outline_textboolean(SVG format only) If true, text is rendered as vector paths (outlines) for visual fidelity. If false, text is rendered as `<text>` elements (selectable, appearance may vary).
svg_include_node_idboolean(SVG format only) If true, includes `data-node-id` attribute (with node ID) for all SVG elements.
svg_simplify_strokeboolean(SVG format only) If true, simplifies inside/outside strokes, using `stroke` attribute instead of `<mask>` where possible.
use_absolute_boundsbooleanIf true, uses full node dimensions for rendering, ignoring cropping/empty space (useful for text nodes without unintended cropping).
Parámetros de salida
dataobjectObligatorioCore response data with image rendering results.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update a webhookFIGMA_UPDATE_A_WEBHOOKAcciónUpdates an existing figma webhook, identified by `webhook id`, allowing modification of its event type, endpoint, passcode, status, or description.
FIGMA_UPDATE_A_WEBHOOKAcciónUpdates an existing figma webhook, identified by `webhook id`, allowing modification of its event type, endpoint, passcode, status, or description.
Parámetros de entrada
statusstringenumOperational status: `ACTIVE` to receive events, `PAUSED` to temporarily stop event delivery.
ACTIVEPAUSEDendpointstringObligatorioURL of the HTTP endpoint to receive POST requests for webhook events. Max length 2048.
passcodestringObligatorioSecret string for your endpoint to verify webhook authenticity. Max length 100.
event_typestringObligatorioenumType of event that triggers the webhook.
FILE_COMMENTFILE_DELETEFILE_UPDATEFILE_VERSION_UPDATELIBRARY_PUBLISHPINGwebhook_idstringObligatorioUnique identifier of the existing webhook to update.
descriptionstringOptional description for the webhook. Max length 150.
Parámetros de salida
dataobjectObligatorioThe updated webhook object details.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update dev resourcesFIGMA_UPDATE_DEV_RESOURCESAcciónUpdates the name and/or url of one or more existing figma dev resources, each identified by its unique `id`.
FIGMA_UPDATE_DEV_RESOURCESAcciónUpdates the name and/or url of one or more existing figma dev resources, each identified by its unique `id`.
Parámetros de entrada
dev_resourcesobject[]ObligatorioList of dev resources to update. Each must include its `id` and can optionally provide a new `name` and/or `url`.
Parámetros de salida
dataobjectObligatorioDetailed results of the bulk update, including successfully updated resources and any errors.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not