Skip to Content

Figma API

Figma API icon
Arcade Starter

Tools that enable LLMs to interact directly with the figma API.

Author:Arcade
Version:1.0.0
Auth:User authorization via the Figma auth provider
43tools
PyPI VersionPython VersionsWheel StatusDownloadsLicense

Arcade Toolkit for Figma API empowers LLMs to seamlessly interact with Figma projects. This toolkit provides a robust set of capabilities for managing design assets, comments, and webhooks within Figma.

Capabilities

  • Manage comments, including adding, deleting, and reacting to them.
  • Create, update, and delete developer resources in bulk across multiple Figma files.
  • Access and manipulate Figma components, styles, and variables for efficient asset management.
  • Fetch analytics data and version histories to analyze design changes and usage trends.
  • Integrate webhooks for real-time updates on design changes and events.

OAuth

  • Provider: Figma
  • Scopes: current_user:read, file_comments:read, file_comments:write, file_content:read, file_dev_resources:read, file_dev_resources:write, file_metadata:read, file_variables:read, file_variables:write, file_versions:read, library_analytics:read, library_assets:read, library_content:read, projects:read, team_library_content:read, webhooks:read, webhooks:write

Available tools(43)

43 of 43
Tool nameDescriptionSecrets
Posts a new comment on a Figma file. Use this tool to post a new comment on a specified file in Figma, identified by file_key. Note: Understanding the request schema is necessary to properly create the stringified JSON input object for execution. This operation also requires path parameters. Modes: - GET_REQUEST_SCHEMA: Returns the schema. Only call if you don't already have it. Do NOT call repeatedly if you already received the schema. - EXECUTE: Performs the operation with the provided request body JSON. Note: You must also provide the required path parameters when executing. If you need the schema, call with mode='get_request_schema' ONCE, then execute.
Add a reaction to a comment on a Figma file. Use this tool to post a new reaction to an existing comment on a Figma file. It should be called when you want to react to a specific comment in a Figma project. Note: Understanding the request schema is necessary to properly create the stringified JSON input object for execution. This operation also requires path parameters. Modes: - GET_REQUEST_SCHEMA: Returns the schema. Only call if you don't already have it. Do NOT call repeatedly if you already received the schema. - EXECUTE: Performs the operation with the provided request body JSON. Note: You must also provide the required path parameters when executing. If you need the schema, call with mode='get_request_schema' ONCE, then execute.
Update multiple Figma dev resources in bulk. This tool updates developer resources across multiple Figma files. It should be called when you need to apply changes to several resources at once. The response will include arrays indicating which resources were successfully updated and which encountered errors. Note: Understanding the request schema is necessary to properly create the stringified JSON input object for execution. Modes: - GET_REQUEST_SCHEMA: Returns the schema. Only call if you don't already have it. Do NOT call repeatedly if you already received the schema. - EXECUTE: Performs the operation with the provided request body JSON. If you need the schema, call with mode='get_request_schema' ONCE, then execute.
Bulk create developer resources in multiple Figma files. Use this tool to create multiple developer resources across different Figma files. Successfully created resources will be listed in the response, while any errors will also be provided, indicating issues such as non-existent file keys or duplicate URLs. Note: Understanding the request schema is necessary to properly create the stringified JSON input object for execution. Modes: - GET_REQUEST_SCHEMA: Returns the schema. Only call if you don't already have it. Do NOT call repeatedly if you already received the schema. - EXECUTE: Performs the operation with the provided request body JSON. If you need the schema, call with mode='get_request_schema' ONCE, then execute.
Create a new webhook for Figma events. This tool creates a webhook in Figma that triggers an event to a specified endpoint. It sends a PING event by default, unless set to PAUSED, and can be reactivated later. Note: Understanding the request schema is necessary to properly create the stringified JSON input object for execution. Modes: - GET_REQUEST_SCHEMA: Returns the schema. Only call if you don't already have it. Do NOT call repeatedly if you already received the schema. - EXECUTE: Performs the operation with the provided request body JSON. If you need the schema, call with mode='get_request_schema' ONCE, then execute.
Delete a dev resource from a Figma file. Call this tool to delete a specific developer resource from a Figma file using the file key and resource ID.
Delete your comment from a Figma file. Use this tool to delete a specific comment you made on a Figma file. Only the original commenter can delete their comments.
Delete a specified webhook in Figma. Use this tool to delete a specified webhook in Figma. This action is irreversible and should be called when a webhook is no longer needed.
Deletes your specific comment reaction in Figma. This tool allows users to delete a reaction they added to a comment in a Figma file. It can only be used if the reaction was made by the person attempting to delete it.
Retrieve reactions from a specific comment in Figma. Use this tool to obtain a list of reactions left on a specific comment in a Figma file. This can help track engagement or feedback on comments.
Fetch library analytics component usage data by dimension. This tool retrieves a list of library analytics component usage data, providing insights into how components are used, broken down by the specified dimension.
Retrieve a Figma file as a JSON object using its file key. Use this tool to fetch a Figma document as JSON, identified by a file key. The returned data includes the document structure and metadata about components.
Fetch the version history of a Figma file. Use this tool to obtain the version history of a specific Figma file, enabling the analysis of its changes over time. This can be useful for reviewing past edits or rendering specific versions.
Retrieve download links for images in a Figma document. Use this tool to get download links for all images present in the image fills of a Figma document. These links allow access to images users have added to their design files. The URLs will expire after about 14 days and can be found using image references.
Retrieve library analytics variable actions data from Figma. Call this tool to obtain a breakdown of library analytics variable actions data from Figma based on a specific dimension.
Fetch all projects within a specified Figma team. This tool retrieves a list of projects for a specified team in Figma, visible to the authenticated user.
Retrieve development resources from a Figma file. Use this tool to gather development resources from a specific Figma file using the file key.
Retrieve metadata for a Figma component by key. Use this tool to obtain detailed metadata about a specific Figma component using its key.
Retrieve metadata for a Figma component set using its key. Use this tool to obtain detailed metadata about a published component set in Figma by providing its unique key identifier.
Retrieve comments from a Figma file. Use this tool to get a list of comments left on a specific Figma file. It is useful for accessing feedback or discussions related to file elements.
Retrieve published components from a Figma file library. Use this tool to obtain a list of all published components within a specific Figma file, allowing for design asset management or analysis.
Retrieve nodes and metadata from a Figma file. Use this tool to get detailed information about specific nodes in a Figma file, including metadata like name, last modified date, thumbnail URL, editor type, version, and link access permissions. Also retrieves document structure, component mappings, and styles. Useful for accessing and analyzing Figma design elements.
Retrieve all files from a specific Figma project. This tool fetches a list of all files within the specified Figma project. Use it when you need to access or manage project files stored in Figma.
Retrieve a Figma webhook by its ID. Use this tool to obtain detailed information about a specific Figma webhook by providing its unique ID.
Retrieve a list of webhooks from Figma. Call this tool to get a list of webhooks available in your Figma context or plan. This can be used to manage and view all the webhooks you have access to, with results provided in a paginated format.
Page 1 of 2(25 of 43)

Selected tools

No tools selected.

Click "Show all tools" to add tools.

Requirements

Select tools to see requirements

#

FigmaApi.AddCommentToFigmaFile

Posts a new comment on a Figma file. Use this tool to post a new comment on a specified file in Figma, identified by file_key. Note: Understanding the request schema is necessary to properly create the stringified JSON input object for execution. This operation also requires path parameters. Modes: - GET_REQUEST_SCHEMA: Returns the schema. Only call if you don't already have it. Do NOT call repeatedly if you already received the schema. - EXECUTE: Performs the operation with the provided request body JSON. Note: You must also provide the required path parameters when executing. If you need the schema, call with mode='get_request_schema' ONCE, then execute.

Parameters

ParameterTypeReq.Description
modestringRequiredOperation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation
get_request_schemaexecute
figma_file_keystringOptionalFile or branch key for the Figma file where the comment will be added. Retrieve this using `GET /v1/files/:key` with the `branch_data` query param for branch keys. Required when mode is 'execute', ignored when mode is 'get_request_schema'.
request_bodystringOptionalStringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema'

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'postComment'.
#

FigmaApi.AddFigmaCommentReaction

Add a reaction to a comment on a Figma file. Use this tool to post a new reaction to an existing comment on a Figma file. It should be called when you want to react to a specific comment in a Figma project. Note: Understanding the request schema is necessary to properly create the stringified JSON input object for execution. This operation also requires path parameters. Modes: - GET_REQUEST_SCHEMA: Returns the schema. Only call if you don't already have it. Do NOT call repeatedly if you already received the schema. - EXECUTE: Performs the operation with the provided request body JSON. Note: You must also provide the required path parameters when executing. If you need the schema, call with mode='get_request_schema' ONCE, then execute.

Parameters

ParameterTypeReq.Description
modestringRequiredOperation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation
get_request_schemaexecute
file_or_branch_keystringOptionalKey of the file or branch where the comment reaction should be posted. Can be obtained via the Figma API. Required when mode is 'execute', ignored when mode is 'get_request_schema'.
comment_idstringOptionalThe unique identifier of the comment you want to react to in a Figma file. Required when mode is 'execute', ignored when mode is 'get_request_schema'.
request_bodystringOptionalStringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema'

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'postCommentReaction'.
#

FigmaApi.BulkUpdateFigmaDevResources

Update multiple Figma dev resources in bulk. This tool updates developer resources across multiple Figma files. It should be called when you need to apply changes to several resources at once. The response will include arrays indicating which resources were successfully updated and which encountered errors. Note: Understanding the request schema is necessary to properly create the stringified JSON input object for execution. Modes: - GET_REQUEST_SCHEMA: Returns the schema. Only call if you don't already have it. Do NOT call repeatedly if you already received the schema. - EXECUTE: Performs the operation with the provided request body JSON. If you need the schema, call with mode='get_request_schema' ONCE, then execute.

Parameters

ParameterTypeReq.Description
modestringRequiredOperation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation
get_request_schemaexecute
request_bodystringOptionalStringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema'

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'putDevResources'.
#

FigmaApi.CreateBulkDevResources

Bulk create developer resources in multiple Figma files. Use this tool to create multiple developer resources across different Figma files. Successfully created resources will be listed in the response, while any errors will also be provided, indicating issues such as non-existent file keys or duplicate URLs. Note: Understanding the request schema is necessary to properly create the stringified JSON input object for execution. Modes: - GET_REQUEST_SCHEMA: Returns the schema. Only call if you don't already have it. Do NOT call repeatedly if you already received the schema. - EXECUTE: Performs the operation with the provided request body JSON. If you need the schema, call with mode='get_request_schema' ONCE, then execute.

Parameters

ParameterTypeReq.Description
modestringRequiredOperation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation
get_request_schemaexecute
request_bodystringOptionalStringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema'

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'postDevResources'.
#

FigmaApi.CreateFigmaWebhook

Create a new webhook for Figma events. This tool creates a webhook in Figma that triggers an event to a specified endpoint. It sends a PING event by default, unless set to PAUSED, and can be reactivated later. Note: Understanding the request schema is necessary to properly create the stringified JSON input object for execution. Modes: - GET_REQUEST_SCHEMA: Returns the schema. Only call if you don't already have it. Do NOT call repeatedly if you already received the schema. - EXECUTE: Performs the operation with the provided request body JSON. If you need the schema, call with mode='get_request_schema' ONCE, then execute.

Parameters

ParameterTypeReq.Description
modestringRequiredOperation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation
get_request_schemaexecute
request_bodystringOptionalStringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema'

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'postWebhook'.
#

FigmaApi.DeleteDevResource

Delete a dev resource from a Figma file. Call this tool to delete a specific developer resource from a Figma file using the file key and resource ID.

Parameters

ParameterTypeReq.Description
target_file_keystringRequiredThe main file key from which to delete the dev resource. Must not be a branch key.
dev_resource_idstringRequiredThe ID of the developer resource to delete from the Figma file.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'deleteDevResource'.
#

FigmaApi.DeleteFigmaComment

Delete your comment from a Figma file. Use this tool to delete a specific comment you made on a Figma file. Only the original commenter can delete their comments.

Parameters

ParameterTypeReq.Description
figma_file_keystringRequiredThe file or branch key from which to delete the comment. Use `GET /v1/files/:key` with `branch_data` to obtain the branch key.
comment_identifierstringRequiredThe ID of the comment you wish to delete from the Figma file. Only the original commenter can perform this action.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'deleteComment'.
#

FigmaApi.DeleteFigmaWebhook

Delete a specified webhook in Figma. Use this tool to delete a specified webhook in Figma. This action is irreversible and should be called when a webhook is no longer needed.

Parameters

ParameterTypeReq.Description
webhook_id_to_deletestringRequiredThe unique identifier of the webhook you wish to delete. This ID is required for the deletion operation.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'deleteWebhook'.
#

FigmaApi.DeleteMyCommentReaction

Deletes your specific comment reaction in Figma. This tool allows users to delete a reaction they added to a comment in a Figma file. It can only be used if the reaction was made by the person attempting to delete it.

Parameters

ParameterTypeReq.Description
reaction_emojistringRequiredThe emoji associated with the reaction to be deleted. Only the emoji used for the reaction you added can be deleted.
file_or_branch_keystringRequiredKey of the Figma file or branch where the reaction should be deleted. Use `GET /v1/files/:key` with the `branch_data` query param to obtain the branch key if needed.
comment_idstringRequiredThe ID of the comment from which you want to delete your reaction.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'deleteCommentReaction'.
#

FigmaApi.FetchCommentReactions

Retrieve reactions from a specific comment in Figma. Use this tool to obtain a list of reactions left on a specific comment in a Figma file. This can help track engagement or feedback on comments.

Parameters

ParameterTypeReq.Description
file_or_branch_keystringRequiredThe key for the file or branch to retrieve the comment reactions from in Figma.
comment_idstringRequiredID of the comment from which to retrieve reactions.
pagination_cursorstringOptionalCursor for pagination. Use the cursor from the previous call's response to retrieve the next set of reactions.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getCommentReactions'.
#

FigmaApi.FetchComponentUsageData

Fetch library analytics component usage data by dimension. This tool retrieves a list of library analytics component usage data, providing insights into how components are used, broken down by the specified dimension.

Parameters

ParameterTypeReq.Description
group_by_dimensionstringRequiredA dimension to group the returned analytics data. Choose between 'component' or 'file'.
library_file_keystringRequiredThe file key of the library to fetch analytics data for. Required for specifying the target library.
data_page_cursorstringOptionalCursor indicating which page of data to fetch, obtained from a prior API call.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getLibraryAnalyticsComponentUsages'.
#

FigmaApi.FetchFigmaFile

Retrieve a Figma file as a JSON object using its file key. Use this tool to fetch a Figma document as JSON, identified by a file key. The returned data includes the document structure and metadata about components.

Parameters

ParameterTypeReq.Description
file_keystringRequiredThe unique key of the Figma file or branch to retrieve as JSON.
version_idstringOptionalSpecify the version ID to retrieve a specific version of the file. Default is the current version.
node_ids_of_intereststringOptionalComma-separated list of node IDs to retrieve specific parts of the Figma document.
traversal_depthnumberOptionalPositive integer indicating the depth in the document tree to retrieve. For example, 1 returns only Pages; 2 returns Pages and top-level objects.
export_vector_datastringOptionalSet to "paths" to include vector data in the response.
include_plugin_datastringOptionalComma separated list of plugin IDs and/or 'shared'. Includes plugin data in the result.
include_branch_metadatabooleanOptionalSet to true to include metadata about branches related to the file. If false, branch information will not be returned.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getFile'.
#

FigmaApi.FetchFileVersionHistory

Fetch the version history of a Figma file. Use this tool to obtain the version history of a specific Figma file, enabling the analysis of its changes over time. This can be useful for reviewing past edits or rendering specific versions.

Parameters

ParameterTypeReq.Description
target_file_keystringRequiredThe key of the file or branch to fetch version history for. Use this to specify the Figma file whose version history you need.
number_of_items_per_pagenumberOptionalSpecify the number of items to return per page. Defaults to 30 if not provided.
get_versions_before_idnumberOptionalA version ID to get versions before it in the history. Used for pagination.
after_version_idnumberOptionalVersion ID to fetch subsequent versions. Used for pagination. Omit if not paginating.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getFileVersions'.
#

FigmaApi.FetchLibraryAnalyticsVariableActions

Retrieve library analytics variable actions data from Figma. Call this tool to obtain a breakdown of library analytics variable actions data from Figma based on a specific dimension.

Parameters

ParameterTypeReq.Description
group_by_dimensionstringRequiredA dimension to group the returned analytics data by. Options: 'variable', 'team'.
library_file_keystringRequiredThe file key of the library for which to fetch analytics data.
page_cursorstringOptionalCursor to indicate which page of data to fetch, obtained from a previous API call.
earliest_week_start_datestringOptionalISO 8601 date string (YYYY-MM-DD) representing the earliest week to include. Rounded back to the nearest week's start. Defaults to one year prior.
end_datestringOptionalISO 8601 date string (YYYY-MM-DD) for the latest week to include. Defaults to the latest computed week.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getLibraryAnalyticsVariableActions'.
#

FigmaApi.FigmaGetTeamProjects

Fetch all projects within a specified Figma team. This tool retrieves a list of projects for a specified team in Figma, visible to the authenticated user.

Parameters

ParameterTypeReq.Description
team_idstringRequiredThe unique ID of the Figma team to list projects from. This is required to specify which team's projects to retrieve.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getTeamProjects'.
#

FigmaApi.GetDevResources

Retrieve development resources from a Figma file. Use this tool to gather development resources from a specific Figma file using the file key.

Parameters

ParameterTypeReq.Description
file_keystringRequiredThe main file key for fetching development resources from a Figma file. Ensure it is not a branch key.
target_node_idsstringOptionalComma separated list of node IDs to filter dev resources. If left blank, returns resources for all nodes.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getDevResources'.
#

FigmaApi.GetFigmaComponentMetadata

Retrieve metadata for a Figma component by key. Use this tool to obtain detailed metadata about a specific Figma component using its key.

Parameters

ParameterTypeReq.Description
component_keystringRequiredThe unique identifier of the Figma component to retrieve metadata for.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getComponent'.
#

FigmaApi.GetFigmaComponentSet

Retrieve metadata for a Figma component set using its key. Use this tool to obtain detailed metadata about a published component set in Figma by providing its unique key identifier.

Parameters

ParameterTypeReq.Description
component_set_keystringRequiredThe unique key identifier for the Figma component set to retrieve metadata.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getComponentSet'.
#

FigmaApi.GetFigmaFileComments

Retrieve comments from a Figma file. Use this tool to get a list of comments left on a specific Figma file. It is useful for accessing feedback or discussions related to file elements.

Parameters

ParameterTypeReq.Description
figma_file_or_branch_keystringRequiredSpecify the file or branch key to retrieve comments from. Use the `GET /v1/files/:key` endpoint with `branch_data` query param for branch keys.
return_comments_as_markdownbooleanOptionalSet to true to return comments as markdown equivalents when applicable.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getComments'.
#

FigmaApi.GetFigmaFileComponents

Retrieve published components from a Figma file library. Use this tool to obtain a list of all published components within a specific Figma file, allowing for design asset management or analysis.

Parameters

ParameterTypeReq.Description
file_keystringRequiredMain file key to list components from. Must not be a branch key.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getFileComponents'.
#

FigmaApi.GetFigmaFileNodes

Retrieve nodes and metadata from a Figma file. Use this tool to get detailed information about specific nodes in a Figma file, including metadata like name, last modified date, thumbnail URL, editor type, version, and link access permissions. Also retrieves document structure, component mappings, and styles. Useful for accessing and analyzing Figma design elements.

Parameters

ParameterTypeReq.Description
node_ids_to_retrievestringRequiredA comma-separated list of Figma node IDs to retrieve as JSON.
figma_file_keystringRequiredThe file or branch key from which to export JSON data in Figma.
specific_version_idstringOptionalSpecify a version ID to retrieve a particular version of the Figma file. If omitted, the current version is retrieved.
node_tree_depthnumberOptionalPositive integer indicating how deep into the node tree to traverse from the starting node. A value of 1 returns only immediate children. Leaving it unset returns all nodes.
export_vector_datastringOptionalSet to "paths" to include vector data in the response.
include_plugin_datastringOptionalComma-separated plugin IDs and/or 'shared' to include plugin-related data in results.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getFileNodes'.
#

FigmaApi.GetFigmaProjectFiles

Retrieve all files from a specific Figma project. This tool fetches a list of all files within the specified Figma project. Use it when you need to access or manage project files stored in Figma.

Parameters

ParameterTypeReq.Description
project_identifierstringRequiredThe unique string ID of the Figma project from which to list files.
include_branch_metadatabooleanOptionalInclude branch metadata for each main file with a branch in the project. Set to true to receive this data, otherwise false.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getProjectFiles'.
#

FigmaApi.GetFigmaWebhook

Retrieve a Figma webhook by its ID. Use this tool to obtain detailed information about a specific Figma webhook by providing its unique ID.

Parameters

ParameterTypeReq.Description
webhook_idstringRequiredUnique identifier of the Figma webhook to retrieve.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getWebhook'.
#

FigmaApi.GetFigmaWebhooks

Retrieve a list of webhooks from Figma. Call this tool to get a list of webhooks available in your Figma context or plan. This can be used to manage and view all the webhooks you have access to, with results provided in a paginated format.

Parameters

ParameterTypeReq.Description
webhook_contextstringOptionalSpecify the context for the webhooks. Accepts 'team', 'project', or 'file'.
context_identifierstringOptionalThe ID of the context to fetch attached webhooks. Cannot be used with plan_api_id.
plan_id_for_webhooksstringOptionalThe ID of your plan for retrieving webhooks across all accessible contexts. Cannot be used with context or context_id.
pagination_cursorstringOptionalCursor for pagination when using plan_api_id. Provide next_page or prev_page from previous response to navigate pages.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getWebhooks'.
#

FigmaApi.GetFileMetadata

Retrieve metadata for a specified Figma file. This tool is used to obtain metadata information from a specific Figma file by providing the file key. It can be called when users need to access details about a Figma file, such as its name, creator, and other properties.

Parameters

ParameterTypeReq.Description
file_identifierstringRequiredFile or branch key to get metadata for. Use the `branch_data` query param to get the branch key.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getFileMeta'.
#

FigmaApi.GetLibraryAnalyticsComponentActions

Get analytics for library component actions. Retrieve detailed data on library component actions in Figma, broken down by the specified dimension. This tool is used to gain insights into how components in a Figma library are being utilized.

Parameters

ParameterTypeReq.Description
group_by_dimensionstringRequiredSpecify the dimension to group the analytics data by. Options are 'component' or 'team'.
library_file_keystringRequiredThe unique file key for the Figma library to retrieve analytics data from.
data_page_cursorstringOptionalCursor indicating the specific page of data to fetch, obtained from a previous API call.
earliest_start_datestringOptionalISO 8601 date string (YYYY-MM-DD) for the earliest week to include. Rounded back to the start of a week. Defaults to one year prior.
latest_inclusion_datestringOptionalISO 8601 date string (YYYY-MM-DD) of the latest week to include, rounded forward to the nearest week's end. Defaults to the latest computed week.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getLibraryAnalyticsComponentActions'.
#

FigmaApi.GetLibraryAnalyticsVariableUsages

Retrieve analytics on library variable usage. Fetches a breakdown of library analytics variable usage data by the specified dimension.

Parameters

ParameterTypeReq.Description
group_by_dimensionstringRequiredSpecifies the dimension ('variable' or 'file') for grouping library analytics data.
library_file_keystringRequiredThe unique key of the library to fetch analytics data from.
page_cursorstringOptionalA token to fetch the specific page of results, received from a previous API call.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getLibraryAnalyticsVariableUsages'.
#

FigmaApi.GetLibraryStyleActions

Retrieve library style analytics actions data by dimension. Use this tool to obtain detailed actions data for styles in a Figma library, categorized by the specified dimension. Ideal for analyzing how styles are used or modified.

Parameters

ParameterTypeReq.Description
group_by_dimensionstringRequiredSpecify the dimension ('style' or 'team') to group the returned analytics data by.
library_file_keystringRequiredThe unique file key of the Figma library to retrieve analytics data for.
pagination_cursorstringOptionalA cursor to indicate which page of data to fetch. Obtain this from a prior API call.
earliest_week_start_datestringOptionalISO 8601 date string (YYYY-MM-DD) for the earliest week to include. Dates round back to the nearest week start. Defaults to one year prior.
end_datestringOptionalISO 8601 date string (YYYY-MM-DD) for the latest week to include, rounded to the week's end. Defaults to the latest computed week if not specified.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getLibraryAnalyticsStyleActions'.
#

FigmaApi.GetLibraryStyleUsageData

Retrieve style usage data from Figma library analytics. This tool returns library analytics style usage data from Figma, broken down by the requested dimension. It should be used to analyze style usage within a specific Figma library file.

Parameters

ParameterTypeReq.Description
group_by_dimensionstringRequiredDimension to group the returned analytics data by. Options are 'style' or 'file'.
library_file_keystringRequiredThe file key of the Figma library to fetch analytics data for. This is required to specify the source library.
pagination_cursorstringOptionalCursor indicating which page of data to fetch, obtained from a previous API call.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getLibraryAnalyticsStyleUsages'.
#

FigmaApi.GetPublishedComponentSets

Retrieve published component sets from a Figma file. Call this tool to get a list of published component sets within a specified Figma file library. Useful for accessing design components efficiently.

Parameters

ParameterTypeReq.Description
main_file_keystringRequiredThe main file key of the Figma file to list component sets from. Must not be a branch key.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getFileComponentSets'.
#

FigmaApi.GetPublishedStylesFromFile

Retrieve published styles from a Figma file library. Use this tool to get a list of published styles within a specific Figma file library. Useful when you need to analyze or display the styles used in a Figma file.

Parameters

ParameterTypeReq.Description
main_file_keystringRequiredMain file key to list styles from. Must not be a branch key.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getFileStyles'.
#

FigmaApi.GetPublishedVariables

Retrieve published variables from a Figma file. Call this tool to get a list of variables that are published from a specified Figma file. The response includes variable and collection details along with `subscribed_id`. Ideal for users needing information on published variables from a file within an Enterprise organization.

Parameters

ParameterTypeReq.Description
main_file_keystringRequiredThe key of the Figma file to retrieve published variables from. Only use the main file key, not a branch key.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getPublishedVariables'.
#

FigmaApi.GetRecentWebhookRequests

Retrieve recent webhook requests from the last week. Use this tool to gather webhook requests sent within the last week for debugging purposes.

Parameters

ParameterTypeReq.Description
webhook_subscription_idstringRequiredThe ID of the webhook subscription for which to retrieve recent events.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getWebhookRequests'.
#

FigmaApi.GetStyleMetadata

Retrieve Figma style metadata by key. Use this tool to get detailed metadata about a specific style in Figma using its unique key. Useful for accessing style information for design analysis or integration.

Parameters

ParameterTypeReq.Description
style_keystringRequiredThe unique identifier of the Figma style to retrieve metadata for.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getStyle'.
#

FigmaApi.GetTeamComponents

Retrieve published components from a team's Figma library. Use this tool to get a list of components that have been published within a specified team's library in Figma.

Parameters

ParameterTypeReq.Description
team_idstringRequiredThe unique identifier of the team whose components you want to retrieve. This ID is necessary to specify the source team library in Figma.
number_of_items_per_pagenumberOptionalSpecify the number of components to return in one page. Defaults to 30, maximum is 1000.
cursor_after_idnumberOptionalCursor indicating which ID to start retrieving components after. Cannot be used with 'before'.
cursor_beforenumberOptionalCursor to retrieve components starting before a specific id. Exclusive with 'cursor_after'.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getTeamComponents'.
#

FigmaApi.GetTeamComponentSets

Fetch published component sets from a Figma team library. This tool retrieves a paginated list of component sets that have been published within a specified team library in Figma. It should be used when you need to access or explore available component sets in a particular Figma team.

Parameters

ParameterTypeReq.Description
team_idstringRequiredThe unique identifier for the team from which to list component sets.
number_of_items_per_pagenumberOptionalSpecify the number of items to return per page in the results. Defaults to 30.
start_after_cursornumberOptionalCursor indicating the starting point for retrieving component sets, exclusive with `end_before_cursor`. This cursor is an internally tracked integer not corresponding to any IDs.
cursor_before_idnumberOptionalCursor ID indicating the point before which to retrieve component sets. It must be exclusive with the 'after' cursor.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getTeamComponentSets'.
#

FigmaApi.GetTeamStyles

Retrieve a list of published styles from a team's library in Figma. This tool retrieves a paginated list of styles that have been published within a specified team's library in Figma. It should be called when you need access to design styles, such as colors or text styles, that a team has made available in their library.

Parameters

ParameterTypeReq.Description
team_idstringRequiredThe unique identifier of the team from which to retrieve published styles.
items_per_pagenumberOptionalSpecify the number of styles to return per page. Defaults to 30 if not provided.
start_after_cursornumberOptionalCursor to start retrieving styles after a specific ID. Cannot be used with before. Internally tracked integer.
cursor_before_idnumberOptionalCursor for retrieving styles before a specific ID. Use this to paginate backwards. Exclusive with after.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getTeamStyles'.
#

FigmaApi.GetUserInformation

Retrieve information for the authenticated Figma user. Use this tool to obtain the profile information of the user currently authenticated in the Figma service.

Parameters

No parameters required.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getMe'.
#

FigmaApi.ManageFigmaVariables

Manage and organize Figma variable collections in bulk. This tool allows you to create, update, and delete variable collections, modes, and variables within Figma files for Enterprise members with Editor seats. Use it to handle variable operations in bulk, including setting mode values and managing temporary IDs. Ideal for organizing complex Figma projects efficiently. Note: Understanding the request schema is necessary to properly create the stringified JSON input object for execution. This operation also requires path parameters. Modes: - GET_REQUEST_SCHEMA: Returns the schema. Only call if you don't already have it. Do NOT call repeatedly if you already received the schema. - EXECUTE: Performs the operation with the provided request body JSON. Note: You must also provide the required path parameters when executing. If you need the schema, call with mode='get_request_schema' ONCE, then execute.

Parameters

ParameterTypeReq.Description
modestringRequiredOperation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation
get_request_schemaexecute
file_identifierstringOptionalSpecifies the Figma file or branch key to modify variables. Retrieve branch key using `GET /v1/files/:key` with `branch_data` parameter. Required when mode is 'execute', ignored when mode is 'get_request_schema'.
request_bodystringOptionalStringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema'

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'postVariables'.
#

FigmaApi.RenderFigmaImages

Fetch rendered images from Figma files by node IDs. Use this tool to render and retrieve images from a Figma file by specifying node IDs. The tool returns a mapping of node IDs to URLs of the rendered images. Note: Some entries may be null if rendering fails for certain nodes. Images expire after 30 days.

Parameters

ParameterTypeReq.Description
node_ids_to_renderstringRequiredA comma-separated list of node IDs for images to be rendered.
figma_file_keystringRequiredThe key for the Figma file or branch to export images from. Use with the `branch_data` query parameter to obtain branch key if needed.
version_idstringOptionalSpecify a version ID to retrieve a particular version of a Figma file. If omitted, will use the current version.
image_scale_factornumberOptionalA number between 0.01 and 4, representing the image scaling factor for rendering.
image_output_formatstringOptionalSpecify the image format for the output. Options are 'jpg', 'png', 'svg', or 'pdf'.
render_text_as_outlinesbooleanOptionalDetermines if text elements are rendered as outlines in SVGs. Set `true` for visual consistency; `false` for selectable text.
include_svg_id_attributesbooleanOptionalInclude id attributes for all SVG elements. Adds the layer name to the 'id' attribute.
include_node_id_in_svg_elementsbooleanOptionalSet to true to include node ID attributes for all SVG elements, adding the node ID to a `data-node-id` attribute.
svg_stroke_simplification_enabledbooleanOptionalSet to true to simplify inside/outside strokes in SVG using stroke attributes instead of `<mask>`.
exclude_overlapping_contentbooleanOptionalSet to true to exclude overlapping content from rendering. Set to false to include overlaps, which may increase processing time.
use_full_dimensions_without_croppingbooleanOptionalExport using full node dimensions, ignoring cropping and empty space. Ensures text nodes are fully visible.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getImages'.
#

FigmaApi.RetrieveFigmaLocalVariables

Retrieve local and remote variables from a Figma file. Use this tool to get a list of local variables created in a Figma file and any remote variables utilized, identified by their `subscribed_id`. This tool is available to full members of Enterprise organizations. It's useful for examining mode values and understanding variable usage within a file.

Parameters

ParameterTypeReq.Description
file_or_branch_keystringRequiredThe key for the file or branch to retrieve variables from in Figma. If a branch, use `GET /v1/files/:key` with the `branch_data` query param to get the branch key.

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'getLocalVariables'.
#

FigmaApi.UpdateFigmaWebhook

Update a Figma webhook by its ID. Use this tool to update the settings or parameters of an existing webhook in Figma by specifying the webhook ID. Note: Understanding the request schema is necessary to properly create the stringified JSON input object for execution. This operation also requires path parameters. Modes: - GET_REQUEST_SCHEMA: Returns the schema. Only call if you don't already have it. Do NOT call repeatedly if you already received the schema. - EXECUTE: Performs the operation with the provided request body JSON. Note: You must also provide the required path parameters when executing. If you need the schema, call with mode='get_request_schema' ONCE, then execute.

Parameters

ParameterTypeReq.Description
modestringRequiredOperation mode: 'get_request_schema' returns the OpenAPI spec for the request body, 'execute' performs the actual operation
get_request_schemaexecute
webhook_id_to_updatestringOptionalProvide the ID of the Figma webhook you want to update. Required when mode is 'execute', ignored when mode is 'get_request_schema'.
request_bodystringOptionalStringified JSON representing the request body. Required when mode is 'execute', ignored when mode is 'get_request_schema'

Requirements

No secrets required

Output

Type:json— Response from the API endpoint 'putWebhook'.
Last updated on