get_selection
Retrieve currently selected Figma nodes with detailed layout and style properties, including size, position, fills, strokes, effects, and variant data. Ideal for reading design specs before writing code.
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 | |||