Get Screenshot
get_screenshotCapture a PNG screenshot of a Figma node or the current selection, with an optional max dimension, and return a local URL and file path plus inline base64 when requested.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_screenshot"
}
}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, at most 4096). | |
| enableBase64Response | No | Also include the PNG inline as base64. |