figma_capture_screenshot
Capture a Figma node or current page as PNG, JPG, or SVG from the plugin runtime to validate design changes immediately, including right after edits.
Instructions
Capture a screenshot of a node using the plugin's exportAsync API. IMPORTANT: This tool captures the CURRENT state from the plugin runtime (not cloud state like REST API), making it reliable for validating changes immediately after making them. Use this instead of figma_get_component_image when you need to verify that changes were applied correctly. Requires Desktop Bridge connection (Figma Desktop with plugin running).
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": "figma_capture_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale factor (default: 2 for 2x resolution) | |
| format | No | Image format (default: PNG) | PNG |
| nodeId | No | ID of the node to capture (e.g., '1:234'). If not provided, captures the current page. |