figma_get_selection
Returns the current Figma selection from plugin memory, avoiding a round trip into Figma. Pass fileKey when multiple files are connected.
Instructions
Current selection. Answered from memory — the plugin pushes selectionchange, so this costs no round trip into Figma. With several files connected, pass fileKey.
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 |
|---|---|---|---|
| fileKey | No | Which connected Figma file to use: its fileKey (figma_whoami) or, when omitted, the only connected file. Required once more than one file is connected; figma_ping lists them. |