get_selection
Returns the current Figma selection as serialized data, including child nodes up to a specified depth, so clients can read exactly what the user has selected.
Instructions
Return the current selection (serialised, with children up to depth).
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 |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| depth | No |