get_selection
Retrieve nodes selected in Figma with layout and style details. Use node IDs for screenshots or design analysis.
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 | |||