designport

v0.1.0
io.github.CloudCorpRecords/designport Checked 2 days ago Published 1 month ago

Figma 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.

ParameterTypeDescription
file_key *stringFigma file key identifying the file to retrieve.
depthnumberOptional depth of the document tree to return, as a number of levels.
versionstringOptional 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.

ParameterTypeDescription
file_key *stringFigma file key identifying the file containing the nodes.
node_ids *stringComma-separated list of node IDs to retrieve from the file.
depthnumberOptional depth of the node subtrees to return, as a number of levels.
versionstringOptional 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.

ParameterTypeDescription
file_key *stringFigma file key identifying the file containing the nodes to render.
node_ids *stringComma-separated list of node IDs to render as images.
formatstringOptional output format for the rendered images, such as png, jpg, svg, or pdf.
scalenumberOptional scale factor for the rendered images.

get_image_fills

Get the image fills referenced by a Figma file.

ParameterTypeDescription
file_key *stringFigma file key identifying the file whose image fills to return.

get_file_styles

Get the styles published in a Figma file.

ParameterTypeDescription
file_key *stringFigma file key identifying the file whose published styles to return.

get_file_components

Get the components published in a Figma file.

ParameterTypeDescription
file_key *stringFigma file key identifying the file whose published components to return.

get_team_projects

List the projects belonging to a Figma team.

ParameterTypeDescription
team_id *stringFigma team ID whose projects to list.

list_project_files

List the files in a Figma project.

ParameterTypeDescription
project_id *stringFigma project ID whose files to list.

get_comments

Get the comments on a Figma file.

ParameterTypeDescription
file_key *stringFigma 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.

ParameterTypeDescription
file_key *stringFigma file key identifying the file to post the comment to.
message *stringText of the comment to post.
client_metastringOptional JSON-string encoding an object with client metadata for the comment, such as its position.