Get layer outline / find layers
figma_get_metadataRetrieve a sparse layer-tree outline from a Figma link, using name/type/text filters to locate matching layers and paths without fetching full design data.
Instructions
Sparse outline of a node's layer tree: one line per layer with id, type, name, position and size (text layers show their text). Cheaper than figma_get_design for large screens. With name/type/text filters it searches the subtree and lists matches with their path, e.g. find every "Button" instance or the layer containing "Checkout".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "figma_get_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Figma link, e.g. https://www.figma.com/design/<fileKey>/<name>?node-id=12-345 (right-click a layer > Copy link to selection). A bare file key also works. | |
| depth | No | Outline depth (ignored when filtering) | |
| limit | No | ||
| types | No | Layer types to match, e.g. ["INSTANCE","TEXT","FRAME","COMPONENT"] | |
| source | No | Where to read from. auto (default): Figma's viewer protocol (no token, no Dev Mode), then the REST API if FIGMA_TOKEN is set, then the plugin. web/rest/plugin force one. | auto |
| node_id | No | Node id to use instead of the one in the link, e.g. "12:345", "12-345", or an instance sublayer "I12:345;67:89". | |
| name_contains | No | Case-insensitive substring of the layer name | |
| text_contains | No | Case-insensitive substring of a text layer's content |