figma
v1.0.6Export files, access design data, manage projects, comments, and team assets
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
export_file_json Export File as JSON
Export a Figma file as JSON, including document structure, components, and optional metadata. Supports partial exports by node ID and configurable depth traversal.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The unique identifier of the file to export. Can be extracted from the Figma file URL (https://www.figma.com/file/{file_key}/{title}) or obtained as a branch key using the branch_data parameter. |
branch_data | boolean | Include branch metadata in the response, showing the main file key if this is a branch, or branch metadata if the file has branches. |
depth | number | Controls traversal depth into the document tree. A value of 1 returns only pages; 2 returns pages and top-level objects; omitting returns the entire tree. |
geometry | string | Set to include vector path data in the export for shape and vector nodes. |
ids | string | Comma-separated list of node IDs to include in the export. When specified, returns only the requested nodes, their children, and ancestor chains. Top-level canvas nodes are always included regardless… |
plugin_data | string | Comma-separated list of plugin IDs and/or the string 'shared' to include plugin data written to the document. Plugin data will appear in pluginData and sharedPluginData properties. |
get_file_nodes Get File Nodes
Retrieve specific nodes from a Figma file as JSON objects. Extract node data by providing node IDs, with optional support for vector geometry, nested traversal depth, and plugin data.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The Figma file identifier to query. Can be either a file key or branch key (obtain branch key via GET /v1/files/:key with branch_data parameter). |
ids * | string | Comma-separated list of node IDs to retrieve. The API will return data for each specified node, though some values may be null if a node ID does not exist in the file. |
depth | number | How many levels deep to traverse the node tree from each specified node. A value of 1 returns only direct children; omitting this parameter returns the entire subtree. |
geometry | string | Include vector path data in the response. Set to 'paths' to export vector geometry; omit to exclude vector data. |
plugin_data | string | Comma-separated list of plugin IDs and/or the string 'shared' to include plugin data written to the document. Plugin data will be returned in pluginData and sharedPluginData properties. |
render_node_images Render Node Images
Render images from specified nodes in a file. Returns a map of node IDs to image URLs, with null values indicating failed renders. Rendered images expire after 30 days.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The file to export images from. Accepts either a file key or branch key. Use GET /v1/files/:key with the branch_data query parameter to retrieve a branch key. |
ids * | string | Comma-separated list of node IDs to render. Multiple node IDs can be specified to render multiple images from the same file. |
format | string | Output format for the rendered image. |
scale | number | Scaling factor for the rendered image. Values between 0.01 and 4 are supported, where 1.0 represents the original size. |
svg_include_id | boolean | Whether to include id attributes for all SVG elements. When enabled, adds the layer name to the id attribute of each SVG element. |
list_image_fills List Image Fills
Retrieve download URLs for all images used in image fills within a Figma document. Image URLs are valid for up to 14 days and can be located by their imageRef attribute in Paint objects from the file endpoint.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The Figma file identifier to retrieve images from. Accepts either a file key or branch key; use GET /v1/files/:key with branch_data query parameter to obtain a branch key. |
get_file_metadata Get File Metadata
Retrieve metadata for a file or branch. Provide either a file key or branch key to access file information.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The unique identifier for the file or branch. Use a file key for standard file metadata or a branch key for branch-specific metadata. |
list_team_projects List Team Projects
Retrieve all projects within a specified team that are visible to the authenticated user. Only projects accessible to the token owner or authenticated user will be returned.
| Parameter | Type | Description |
|---|---|---|
team_id * | string | The unique identifier of the team. You can find the team ID in the URL of your team page, positioned after 'team' and before your team name. |
list_project_files List Project Files
Retrieve all files within a specified project. Optionally include branch metadata for files that contain branches.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The unique identifier of the project from which to retrieve files. |
branch_data | boolean | Include branch metadata in the response for each main file that contains branches within the project. |
list_file_versions List File Versions
Retrieve the version history of a file to see how it has evolved over time. Use the returned version information to render a specific version via another endpoint.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The file or branch key identifying which file's version history to retrieve. Obtain the branch key using GET /v1/files/:key with the branch_data query parameter. |
page_size | number | Number of version records to return per page. Defaults to 30 if not specified. |
list_file_comments List File Comments
Retrieves all comments left on a file. Supports both file keys and branch keys for accessing comments across different file versions.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The file or branch identifier to retrieve comments from. Use the file key for the main file, or obtain a branch key via GET /v1/files/:key with the branch_data query parameter to access comments on a… |
as_md | boolean | When enabled, converts comments to their markdown equivalents where applicable for better formatting compatibility. |
add_file_comment Add File Comment
Posts a new comment on a file or replies to an existing root comment. Use the comment_id parameter to reply to a specific comment.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The file identifier to add the comment to. Can be a file key or branch key; use GET /v1/files/:key with the branch_data query parameter to retrieve a branch key. |
message * | string | The text content of the comment to post. |
client_meta | Metadata specifying the position or location where the comment should be placed within the file. | |
comment_id | string | The ID of the root comment to reply to. Replies to replies are not supported; only root-level comments can be replied to. |
delete_comment Delete Comment
Deletes a specific comment from a file. Only the comment author is permitted to delete their own comments.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the comment to delete. |
file_key * | string | The file or branch key identifying the file containing the comment. Retrieve the branch key using GET /v1/files/:key with the branch_data query parameter. |
list_comment_reactions List Comment Reactions
Retrieves a paginated list of reactions left on a specific comment. Use this to see all emoji reactions and their authors for a given comment.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the comment to retrieve reactions from. |
file_key * | string | The file identifier to retrieve the comment from. Can be either a file key or branch key; use `GET /v1/files/:key` with the `branch_data` query parameter to obtain a branch key if needed. |
add_comment_reaction Add Comment Reaction
Add an emoji reaction to a file comment. Reactions allow users to quickly respond to comments with emoji expressions.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the comment to react to. |
emoji * | string | The emoji reaction as a shortcode format. Supports optional skin tone modifiers for applicable emoji. Valid shortcodes are defined in the emoji-mart native set. |
file_key * | string | The file identifier to add the reaction to. Can be a file key or branch key; use GET /v1/files/:key with the branch_data query parameter to retrieve a branch key. |
remove_comment_reaction Remove Comment Reaction
Remove a reaction from a comment. Only the user who added the reaction can delete it.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | The unique identifier of the comment from which to remove the reaction. |
emoji * | string | The emoji reaction to remove, specified as a shortcode format. Skin tone modifiers are supported where applicable. |
file_key * | string | The file or branch key containing the comment. Retrieve the branch key using GET /v1/files/:key with the branch_data query parameter. |
get_current_user Get Current User
Retrieve the profile and account information for the currently authenticated user. This endpoint requires valid authentication credentials.
list_team_components List Team Components
Retrieve a paginated list of published components available in a team's component library. Use pagination to manage large result sets efficiently.
| Parameter | Type | Description |
|---|---|---|
team_id * | string | The unique identifier of the team whose components you want to list. |
page_size | number | The number of components to return per page. Specify a value between 1 and 1000 to control result set size. |
list_file_components List File Components
Retrieve a list of published components available in a file library. Only main file keys are supported, as components cannot be published from branch files.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The main file key identifying the file library to retrieve components from. Branch keys are not supported for this operation. |
get_component Get Component
Retrieve detailed metadata for a specific component using its unique identifier. This operation returns comprehensive information about the component's configuration and properties.
| Parameter | Type | Description |
|---|---|---|
key * | string | The unique identifier that uniquely identifies the component within the system. |
list_component_sets List Component Sets
Retrieve a paginated list of published component sets available in a team's library. Use pagination to manage large result sets efficiently.
| Parameter | Type | Description |
|---|---|---|
team_id * | string | The unique identifier of the team whose component sets you want to retrieve. |
page_size | number | The number of component sets to return per page. Useful for controlling response size and implementing pagination. |
list_component_sets_file List Component Sets in File
Retrieve all published component sets available in a file library. This operation requires a main file key and cannot be used with branch keys.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The main file key identifying the library file. Branch keys are not supported as component sets can only be published from main files. |
get_component_set Get Component Set
Retrieve metadata for a published component set using its unique identifier. Returns detailed information about the component set configuration and properties.
| Parameter | Type | Description |
|---|---|---|
key * | string | The unique identifier that uniquely identifies the component set to retrieve. |
list_team_styles List Team Styles
Retrieve a paginated list of published styles from a team's design library. Use pagination to control the number of results returned per request.
| Parameter | Type | Description |
|---|---|---|
team_id * | string | The unique identifier of the team whose styles you want to retrieve. |
page_size | number | The number of styles to return per page. Adjust this value to control result set size. |
list_file_styles List File Styles
Retrieve a list of published styles available in a file library. Styles can only be published from main files, not from branches.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The main file key containing the styles to retrieve. Branch keys are not supported since style publishing is only available for main files. |
get_style Get Style
Retrieve detailed metadata for a specific style using its unique identifier. Use this to fetch style configuration and properties.
| Parameter | Type | Description |
|---|---|---|
key * | string | The unique identifier that references the specific style to retrieve. |
list_webhooks List Webhooks
Retrieve webhooks filtered by context or plan. Use context_id to get webhooks for a specific context, or plan_api_id to retrieve all webhooks across all accessible contexts with pagination support.
| Parameter | Type | Description |
|---|---|---|
context_id | string | The unique identifier of the context to retrieve webhooks for. Cannot be used together with plan_api_id. |
plan_api_id | string | The unique identifier of your plan to retrieve all webhooks across all accessible contexts. Cannot be used together with context_id. Results are paginated when using this parameter. |
get_webhook Get Webhook
Retrieve a webhook configuration by its ID. Use this to fetch details about a specific webhook including its URL, events, and status.
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | The unique identifier of the webhook to retrieve. |
list_activity_logs List Activity Logs
Retrieve a list of activity log events filtered by type, time range, and ordering. Useful for auditing, monitoring system changes, and tracking user actions.
| Parameter | Type | Description |
|---|---|---|
end_time | number | Unix timestamp marking the end of the time range (inclusive). Defaults to the current timestamp if unspecified. |
events | string | Filter results to include only specified event types. Accepts comma-separated values to include multiple event types; all events are returned if unspecified. |
limit | number | Maximum number of events to return in the response. Defaults to 1000 if unspecified. |
order | string | Sort order for events by timestamp. Use ascending order to show oldest events first, or descending order to show newest events first. |
start_time | number | Unix timestamp marking the start of the time range (inclusive). Defaults to one year ago if unspecified. |
list_payments List Payments
Retrieve payment information for a user on a specific Community file, plugin, or widget. You can only query resources that you own.
| Parameter | Type | Description |
|---|---|---|
community_file_id | string | The ID of the Community file to query. Find this in the file's Community page URL (the number after 'file/'). Provide exactly one of: community_file_id, plugin_id, or widget_id. |
plugin_id | string | The ID of the plugin to query. Find this in the plugin's manifest or Community page URL (the number after 'plugin/'). Provide exactly one of: community_file_id, plugin_id, or widget_id. |
user_id | string | The ID of the user whose payment information you want to retrieve. Obtain this by having the user authenticate via OAuth2 to the Figma REST API. |
widget_id | string | The ID of the widget to query. Find this in the widget's manifest or Community page URL (the number after 'widget/'). Provide exactly one of: community_file_id, plugin_id, or widget_id. |
list_local_variables List Local Variables
Retrieve all local variables created in a file and remote variables referenced within it. This operation is restricted to full members of Enterprise organizations and supports examining variable modes and bound variable details.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The file or branch identifier to retrieve variables from. Use the branch key obtained from GET /v1/files/:key with the branch_data query parameter to access branch-specific variables. |
list_published_variables List Published Variables
Retrieve all variables published from a file, including their subscription IDs and last published timestamps. Available only to full members of Enterprise organizations.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The main file key to retrieve published variables from. Branch keys are not supported as variables cannot be published from branches. |
bulk_modify_variables Bulk Modify Variables
Bulk create, update, and delete variables, variable collections, modes, and mode values in a file. Changes are applied atomically in a defined order: collections, then modes, then variables, then mode values.
list_dev_resources List Dev Resources
Retrieve development resources associated with a file. Optionally filter results to specific nodes within the file.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The main file key to retrieve dev resources from. Branch keys are not supported. |
node_ids | string | Comma-separated list of node identifiers to filter results. When specified, only dev resources attached to these nodes are returned. Omit to retrieve all dev resources in the file. |
create_dev_resources Create Dev Resources
Bulk create dev resources across multiple files. Successfully created resources are returned in the links_created array, while any resources that fail validation appear in the errors array with failure reasons.
| Parameter | Type | Description |
|---|---|---|
dev_resources * | array | An array of dev resource objects to create. Each resource must reference a valid file_key, have a unique URL per node, and not exceed the 10 dev resource limit per node. |
update_dev_resources Update Dev Resources
Bulk update dev resources across multiple files. Successfully updated resource IDs are returned in the response, while any resources that fail to update are included in an errors array.
| Parameter | Type | Description |
|---|---|---|
dev_resources * | array | An array of dev resource objects to update. Each resource in the array will be processed, and results will be returned indicating which resources were successfully updated and which encountered errors… |
remove_dev_resource Remove Dev Resource
Remove a dev resource from a file. This operation permanently deletes the specified dev resource and cannot be undone.
| Parameter | Type | Description |
|---|---|---|
dev_resource_id * | string | The unique identifier of the dev resource to delete. |
file_key * | string | The main file key containing the dev resource to delete. Must be a main file key, not a branch key. |
list_library_component_actions List Library Component Actions
Retrieve analytics data for component actions within a library, aggregated by the specified dimension (component or team). Use this to analyze usage patterns and activity metrics across your design library.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The unique identifier of the library file for which to retrieve analytics data. |
group_by * | string | The dimension by which to aggregate the returned analytics data. |
end_date | string | The latest week to include in the analytics results, specified as an ISO 8601 date. The date will be rounded forward to the nearest end of a week. Defaults to the most recently computed week. |
start_date | string | The earliest week to include in the analytics results, specified as an ISO 8601 date. The date will be rounded back to the nearest start of a week. Defaults to one year prior to the end date. |
list_library_component_usages List Library Component Usages
Retrieves analytics data on how components from a library are being used, with results grouped by the specified dimension (component or file).
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The unique identifier of the library file for which to retrieve component usage analytics. |
group_by * | string | The dimension by which to group the returned usage analytics data. |
list_library_style_actions List Library Style Actions
Retrieve analytics data for style actions in a library, aggregated by the specified dimension (style or team). Use date parameters to filter results to a specific time range.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The unique identifier of the library for which to fetch style action analytics. |
group_by * | string | The dimension to group analytics results by. Choose 'style' to aggregate by individual styles or 'team' to aggregate by team. |
end_date | string | The latest week to include in results, specified as an ISO 8601 date. The date will be rounded forward to the nearest week end. Defaults to the most recently computed week. |
start_date | string | The earliest week to include in results, specified as an ISO 8601 date. The date will be rounded back to the nearest week start. Defaults to one year prior to the end date. |
list_library_style_usages List Library Style Usages
Retrieves analytics data on how styles are used within a library, aggregated by the specified dimension (style or file). Use this to understand style adoption and usage patterns across your design library.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The unique identifier of the library file for which to retrieve style usage analytics. |
group_by * | string | The dimension by which to group the returned analytics data. Choose 'style' to see usage broken down by individual styles, or 'file' to see usage broken down by the files that consume those styles. |
list_library_variable_actions List Library Variable Actions
Retrieve analytics data for variable actions within a library, aggregated by the specified dimension (variable or team). Use date parameters to filter results to a specific time range.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The unique identifier of the library for which to fetch variable action analytics. |
group_by * | string | The dimension by which to group the returned analytics data. |
end_date | string | ISO 8601 date marking the end of the analytics period. Dates are rounded forward to the nearest week end. Defaults to the latest computed week. |
start_date | string | ISO 8601 date marking the start of the analytics period. Dates are rounded back to the nearest week start. Defaults to one year prior to the end date. |
list_library_variable_usages List Library Variable Usages
Retrieves analytics data on how variables are used within a library, aggregated by the specified dimension (variable or file). Use this to understand variable usage patterns and dependencies.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | The unique identifier of the library file for which to retrieve variable usage analytics. |
group_by * | string | The dimension by which to aggregate the returned variable usage data. Choose 'variable' to group by individual variables, or 'file' to group by source files. |