designport
v0.1.0Figma REST API client: files, nodes, images, styles, components, projects and comments.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_file
Get a Figma file's document tree by file key.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | Figma file key identifying the file to retrieve. |
depth | number | Optional depth of the document tree to return, as a number of levels. |
version | string | Optional specific version of the file to retrieve, identified by its version ID. |
get_file_nodes
Get specific nodes from a Figma file by comma-separated node IDs.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | Figma file key identifying the file containing the nodes. |
node_ids * | string | Comma-separated list of node IDs to retrieve from the file. |
depth | number | Optional depth of the node subtrees to return, as a number of levels. |
version | string | Optional specific version of the file to read the nodes from, identified by its version ID. |
get_images
Render nodes of a Figma file to image URLs in a format and scale.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | Figma file key identifying the file containing the nodes to render. |
node_ids * | string | Comma-separated list of node IDs to render as images. |
format | string | Optional output format for the rendered images, such as png, jpg, svg, or pdf. |
scale | number | Optional scale factor for the rendered images. |
get_image_fills
Get the image fills referenced by a Figma file.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | Figma file key identifying the file whose image fills to return. |
get_file_styles
Get the styles published in a Figma file.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | Figma file key identifying the file whose published styles to return. |
get_file_components
Get the components published in a Figma file.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | Figma file key identifying the file whose published components to return. |
get_team_projects
List the projects belonging to a Figma team.
| Parameter | Type | Description |
|---|---|---|
team_id * | string | Figma team ID whose projects to list. |
list_project_files
List the files in a Figma project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Figma project ID whose files to list. |
get_comments
Get the comments on a Figma file.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | Figma file key identifying the file whose comments to return. |
post_comment
Post a comment to a Figma file; client_meta is an optional JSON-string encoding an object.
| Parameter | Type | Description |
|---|---|---|
file_key * | string | Figma file key identifying the file to post the comment to. |
message * | string | Text of the comment to post. |
client_meta | string | Optional JSON-string encoding an object with client metadata for the comment, such as its position. |