get_selection
Retrieve currently selected Figma nodes on the active page to inspect or process the current selection; optionally target a document and set child traversal depth.
Instructions
Get currently selected nodes on the active Figma page.
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 |
|---|---|---|---|
| channel | No | Optional Figma document channel, fileKey, or documentName when multiple Figma files are open | |
| maxDepth | No | Child traversal depth (default 2) |