Figma
App · Images & Design · 5 actions
Collaborative interface design. Read a Figma file's structure and metadata, list and post comments for design review, and clean up comments, all with a personal access token.
Actions
| Action | What it does |
|---|---|
| Delete Figma comment | Delete a comment from a Figma file by its comment id. |
| Get Figma file | Get a Figma file's metadata and document tree by its file key. |
| Get Figma user | Get the Figma user that the connected access token belongs to, including their id, display handle, email, and avatar URL. |
| List Figma comments | List the comments on a Figma file, including each comment's text, author, creation time, whether it has been resolved, and where it is pinned on the canvas. |
| Post Figma comment | Post a comment on a Figma file, or reply to an existing comment. |
Delete Figma comment
Delete a comment from a Figma file by its comment id. Only the comment's author (or a file admin) can delete it. Deleting a top-level comment also removes its replies. Useful for cleaning up automated or resolved comments.
Inputs
- File key
file_keytextRequired - The Figma file the comment is on. A file key or a full Figma file URL both work.
- Comment ID
comment_idtextRequired - The id of the comment to delete (from 'List Figma comments' or the response of 'Post Figma comment').
Outputs
Empty object. Figma returns no content on a successful delete; the executor reports success.
statustext- Always 'success' when the delete succeeded.
Example output
{}Get Figma file
Get a Figma file's metadata and document tree by its file key. Returns the file name, the editor type (design, whiteboard, or slides), the last-modified timestamp, the current version id, a thumbnail URL, and the node tree (pages and their layers). Large files can return a lot of data, so use 'depth' to fetch only the top levels of the tree. Useful for reading a file's structure, checking when it last changed, or grabbing its thumbnail.
Inputs
- File key
file_keytextRequired - The Figma file to read. Paste either the file key (the slug in a file URL) or a full Figma file URL such as https://www.figma.com/design/AbC123/My-File; the key is extracted automatically.
- Depth
depthnumber - How many levels of the document tree to return. 1 returns just the pages, 2 also returns each page's top-level layers, and so on. Leave blank to return the entire tree (which can be very large).At least 1.
- Version
versiontext - A specific version id to fetch (from the file's version history). Leave blank for the current version.
- Geometry
geometrytext - Set to 'paths' to include vector geometry for each node. Leave blank to omit geometry (smaller response).One of:
paths(Include vector paths). - Node ids
idstext - Comma-separated node ids (e.g. '1:2,1:8') to return only those nodes, their children, and their ancestor chains instead of the whole document (much smaller when you care about a few frames). Top-level pages are always included. Leave blank to return the full tree (subject to 'depth').
Outputs
File metadata plus the document node tree. The 'document' node is the root; its children are the file's pages (CANVAS nodes).
brancheslist- Present only when requested with branch_data: metadata for the file's branches. Each item is {key, name, thumbnail_url, last_modified, link_access} (note: snake_case, unlike the camelCase top-level fields).
componentSetsobject- Map of node id -> component-set metadata.
componentsobject- Map of node id -> component metadata, telling you which component each instance comes from.
documentobject- Root DOCUMENT node. Its 'children' are the pages (CANVAS nodes).
editorTypetext- Which editor the file uses: 'figma', 'figjam', or 'slides'.
lastModifiedtext- ISO 8601 timestamp of the last edit.
linkAccesstext- The file's share-link access level (e.g. 'view', 'edit', 'org_view', 'inherit').
mainFileKeytext- Present only when the file is a branch (requires branch_data): the key of the main file.
nametext- The file's name.
roletext- The caller's role on the file: 'owner', 'editor', or 'viewer'.
schemaVersionnumber- Version of the response schema.
stylesobject- Map of style id -> style metadata used in the file.
thumbnailUrltext- URL of a rendered thumbnail image of the file.
versiontext- The current version id of the file.
Example output
{
"componentSets": {},
"components": {
"1:12": {
"description": "",
"key": "a1b2c3d4e5f6",
"name": "Button / Primary"
}
},
"document": {
"children": [
{
"children": [
{
"id": "1:2",
"name": "Landing / Hero",
"type": "FRAME"
},
{
"id": "1:8",
"name": "Landing / Pricing",
"type": "FRAME"
}
],
"id": "0:1",
"name": "Page 1",
"type": "CANVAS"
},
{
"children": [],
"id": "0:2",
"name": "Components",
"type": "CANVAS"
}
],
"id": "0:0",
"name": "Document",
"type": "DOCUMENT"
},
"editorType": "figma",
"lastModified": "2026-07-20T18:42:11Z",
"linkAccess": "view",
"name": "Marketing Site Redesign",
"role": "editor",
"schemaVersion": 0,
"styles": {
"1:20": {
"key": "f6e5d4c3b2a1",
"name": "Brand / Coral",
"styleType": "FILL"
}
},
"thumbnailUrl": "https://s3-alpha.figma.com/thumbnails/example.png",
"version": "5219384710"
}Get Figma user
Get the Figma user that the connected access token belongs to, including their id, display handle, email, and avatar URL. Useful for confirming which account a workflow is acting as, or as a lightweight connection check.
Inputs
None.
Outputs
The authenticated Figma user.
emailtext- Email address; present on /me, may be absent on comment authors.
handletext- Display name.
idtext- Unique user id.
img_urltext- Avatar image URL.
Example output
{
"email": "jordan@example.com",
"handle": "Jordan Lee",
"id": "778363821906345612",
"img_url": "https://s3-alpha.figma.com/profile/example.png"
}List Figma comments
List the comments on a Figma file, including each comment's text, author, creation time, whether it has been resolved, and where it is pinned on the canvas. Replies are returned as their own comments with a 'parent_id' pointing at the thread's first comment. Useful for triaging design feedback or pulling open comments into a review.
Inputs
- File key
file_keytextRequired - The Figma file whose comments to list. A file key or a full Figma file URL both work.
- As markdown
as_mdtrue/false - Turn on to return each comment's text as its markdown equivalent where applicable. Leave off for plain text.
Outputs
The file's comments, newest activity first.
commentslist- Array of comment objects.
Example output
{
"comments": [
{
"client_meta": {
"node_id": "1:2",
"node_offset": {
"x": 120.0,
"y": 64.0
}
},
"created_at": "2026-07-19T14:03:52Z",
"file_key": "AbC123dEf456GhI789jkL0",
"id": "9481726354",
"message": "Can we bump the hero headline to 48px?",
"order_id": "1",
"parent_id": "",
"reactions": [],
"resolved_at": null,
"user": {
"email": "jordan@example.com",
"handle": "Jordan Lee",
"id": "778363821906345612",
"img_url": "https://s3-alpha.figma.com/profile/example.png"
}
},
{
"client_meta": null,
"created_at": "2026-07-19T15:11:08Z",
"file_key": "AbC123dEf456GhI789jkL0",
"id": "9481726355",
"message": "Agreed, pushing that now.",
"order_id": "2",
"parent_id": "9481726354",
"reactions": [],
"resolved_at": null,
"user": {
"handle": "Priya Nair",
"id": "883910244501299887",
"img_url": "https://s3-alpha.figma.com/profile/example2.png"
}
}
]
}Post Figma comment
Post a comment on a Figma file, or reply to an existing comment. Provide the file and the message text; optionally reply within an existing thread by giving that comment's id. Returns the created comment, including its new id. Useful for leaving automated design feedback or notifying reviewers from a workflow.
Inputs
- File key
file_keytextRequired - The Figma file to comment on. A file key or a full Figma file URL both work.
- Message
messagetextRequired - The comment text to post.
- Reply to comment
comment_idtext - To reply inside an existing thread, enter the id of the comment you are replying to. This must be a root comment (you cannot reply to a comment that is itself a reply). Leave blank to start a new top-level comment.
Outputs
The comment that was created.
client_metaobject- Where the comment is pinned. One of: a canvas point (Vector) {x, y}; a frame offset {node_id, node_offset: {x, y}}; a Region {x, y, region_height, region_width}; or a FrameOffsetRegion. Null for a reply.
created_attext- ISO 8601 timestamp when the comment was created.
file_keytext- Key of the file the comment belongs to.
idtext- Unique comment id.
messagetext- Comment text.
order_idtext- Ordering key Figma uses to sort comments.
parent_idtext- Id of the parent comment when this is a reply; empty string for a top-level comment.
reactionslist- Emoji reactions on the comment.
resolved_attext- ISO 8601 timestamp when the comment was resolved, or null if unresolved.
userobject- A Figma user.
Example output
{
"client_meta": null,
"created_at": "2026-07-24T09:15:00Z",
"file_key": "AbC123dEf456GhI789jkL0",
"id": "9481726400",
"message": "Ship-ready: approving this frame.",
"order_id": "3",
"parent_id": "",
"reactions": [],
"resolved_at": null,
"user": {
"email": "jordan@example.com",
"handle": "Jordan Lee",
"id": "778363821906345612",
"img_url": "https://s3-alpha.figma.com/profile/example.png"
}
}