capture_screenshot
Capture any Figma node or the current page as PNG/SVG image data, enabling automated visual analysis and design feedback.
Instructions
Capture a screenshot of a Figma node (or the current page) as image data.
Prereq: bridge + plugin connected (check_bridge_health); node IDs from get_selection or get_page_tree. Returns: { type: "image", data: base64, mimeType }. Feed into analyze_design; first step of the self-heal loop (CREATE → SCREENSHOT → ANALYZE → FIX). Prefer SVG for vector components, PNG for complex frames. Errors: isError if not connected or the node is invalid.
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": "capture_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Export scale multiplier (default 2 = @2x, max 4). Use 1 for quick inspection, 2–3 for high-quality analysis. | |
| format | No | Export format. PNG for raster output (default, works for all node types). SVG for vector output (best for icons and simple components). | PNG |
| nodeId | No | Figma node ID to capture (e.g. '123:456'). Omit to capture the entire current page. Obtain IDs from get_selection or get_page_tree. |