figma_search
Find Figma nodes by name, stable key, or text without fetching the full tree; filter by node type, key prefix, or presence, and return compact records with paths and snippets.
Instructions
Find nodes by name, stable key or text without fetching the whole tree. Substring (default), regex or glob matching; filter by node type, key prefix, hasKey, or use no query with a filter. Returns compact node records with path, matched fields, a text snippet, build root and size. Read-only; maxNodes and maxResults are reported when hit.
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_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | substring | |
| query | No | Text to find; omit when filtering only by types/keyPrefix/hasKey | |
| types | No | Only these node types, e.g. ['TEXT','FRAME'] | |
| fields | No | Where the query may match | |
| hasKey | No | true = keyed nodes only; false = unkeyed only | |
| fileKey | No | Which connected Figma file to use: its fileKey (figma_whoami) or, when omitted, the only connected file. Required once more than one file is connected; figma_ping lists them. | |
| maxNodes | No | ||
| keyPrefix | No | Only stable keys beginning with this prefix | |
| maxResults | No | ||
| rootNodeId | No | Subtree root; defaults to the current page | |
| caseSensitive | No | ||
| includeHidden | No | Search hidden layers too |