figma_inspect
Inspect Figma selections, pages, or node IDs to extract layout, text, instances, variables, and editable design plans for auditing, refactoring, or code implementation.
Instructions
Read Figma nodes: the selection (default), the current page (top level) or a node id. format: tree (default; compact snapshot of layout, fills, bound variables, text styles, instances), summary (counts, instances per component, top-level children; cheap for big frames), text (every text layer, flat), instances (every instance with variants, props and overrides, flat), plan (the subtree as a Design Plan you can edit and send to figma_preview_plan: clone, refactor, or implement in code). Big answers are capped; use summary, a smaller depth, or offset/limit.
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_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| limit | No | text/instances: page through the list (default 100) | |
| format | No | ||
| offset | No | ||
| target | No | 'selection' (default) | 'page' | a node id | |
| maxNodes | No | ||
| expandInstances | No | tree: descend into instances (their text, hidden layers, overrides) |