Get the current selection
figma_get_selectionRetrieve the nodes a user selects in Figma so they can turn the current selection into code or design changes.
Instructions
The nodes the user has selected in Figma right now. This is the usual entry point for "make this into code": the user selects what they mean, then this returns it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Child levels per selected node. Default 0. | |
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| includeGeometry | No | Layout, size, position, padding, radius, fill. Default true. |