get_selection
Retrieve selected Figma nodes with layout and style details, including node IDs for screenshots or variant analysis before writing specs.
Instructions
Get the nodes currently selected in Figma with layout/style details.
Prereq: bridge + plugin connected; returns [] if nothing is selected. Returns: [{ id, name, type, width, height, x, y, layoutMode?, padding/sizing/itemSpacing?, fills?, strokes?, effects?, styles?, variantProperties? }]. Use for node IDs (capture_screenshot, analyze_design) or reading layout/variants before writing a spec. Errors: isError if not connected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||