figma_get_metadata
Retrieve a lightweight XML outline of a Figma node, page, or selection—including type, ID, name, position, and size—to find node IDs before fetching design context or screenshots.
Instructions
Sparse XML outline of a node/page/selection: type, id, name, position and size. Cheap; use it to find ids before get_design_context or get_screenshot.
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_get_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| nodeId | No | Defaults to the single selected node, else the current page | |
| 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. |