figma_export_selection_json
Export the current Figma selection to structured JSON for geometry, layout, typography, colors, and spacing. Optional: include styles, layout, children, and set max depth.
Instructions
Export the current selection as structured JSON (geometry, layout, typography, colors, spacing, auto layout).
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_export_selection_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | Max depth (default: 5) | |
| includeStyle | No | Include style properties | |
| includeLayout | No | Include layout properties | |
| includeChildren | No | Include children recursively |