Find layers
figma_find_nodesFind Figma layers by type, name, or text content with optional filters. Search current page, a branch, or entire file in one call, avoiding slow tree traversal.
Instructions
Finds layers by type, by name and by the words in them. Every filter is optional and they narrow together.
This is the cheap way to locate something. Walking with figma_get_tree and figma_get_children costs a round trip per level and returns every sibling; asking here for {types:["INSTANCE"], name:"button"} costs one call. Searches the current page unless you pass nodeId to search inside one branch, or allPages to search the whole file — which is the only way to find something that is not on the page the designer happens to have open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Substring of the layer name, case-insensitive. | |
| text | No | Substring of a text layer’s words, case-insensitive. Implies TEXT. | |
| limit | No | Most rows to return. Default 50. | |
| types | No | Layer types to keep. Omit for any type. | |
| nodeId | No | Search inside this branch instead of the whole page. | |
| allPages | No | Search every page in the file. Slower, and the answer names the page each row is on. |