Render a node as an image
figma_get_screenshotRenders a Figma frame, component, or layer to a PNG image so you can view the design, with optional scale and save-to-path settings.
Instructions
Renders a frame/component/layer to PNG and returns it as an image so you can see the design. Optionally saves it to save_to. The web source renders locally from the file's vector data (very close to Figma, small differences possible with blend modes and blurs); the REST source and plugin use Figma's own renderer.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "figma_get_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Figma link, e.g. https://www.figma.com/design/<fileKey>/<name>?node-id=12-345 (right-click a layer > Copy link to selection). A bare file key also works. | |
| scale | No | Pixel ratio; large frames are scaled down automatically | |
| source | No | Where to read from. auto (default): Figma's viewer protocol (no token, no Dev Mode), then the REST API if FIGMA_TOKEN is set, then the plugin. web/rest/plugin force one. | auto |
| node_id | No | Node id to use instead of the one in the link, e.g. "12:345", "12-345", or an instance sublayer "I12:345;67:89". | |
| save_to | No | Optional file path to also write the PNG to |