capture_screenshot
Capture a Figma node or page as a base64 image to feed into the analyze tool, starting the design self-heal loop.
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.
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. |