Get Figma selection
get_selectionRead the current selection from an open Figma file through the local desktop plugin, with an optional file key to target a specific file instead of the last active one.
Instructions
Read the current selection in the open Figma file through the local desktop plugin.
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": "get_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileKey | No | Optional key of the Figma file to target. Omit to use the most recently active file; see get_plugin_status. |