get_screenshot
Capture a Figma node or current selection as a PNG and get a local URL, file path, and dimensions for design handoff.
Instructions
Generate a screenshot for a given node or the currently selected node in Figma. maxDimension (default 1024) caps the longer edge of the PNG (up to 2x the node size). The response gives a local URL and file path plus width/height and original_width/original_height. Set enableBase64Response to also get the image inline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | The ID of the node, eg. "123:456" or "123-456" (instance ids like "I1:2;3:4" work too). Omit it to use the current selection in Figma. | |
| fileKey | No | The key of the Figma file. Accepted for compatibility; the file open in Figma Desktop is always used. | |
| contentsOnly | No | Render the node in isolation, without overlapping content. | |
| maxDimension | No | Longest edge of the PNG in pixels (default 1024). | |
| enableBase64Response | No | Also include the PNG inline as base64. |