Get current selection
figma_get_selectionReturns the layers currently selected in Figma, including IDs you can pass to other tools for editing or inspection.
Instructions
Returns the layers currently selected in Figma (via the plugin), with ids you can pass to the other tools.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "figma_get_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Figma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file. |