get_metadata
Retrieve an XML document outline for a Figma design file, listing node IDs, layer names, types, positions, and sizes. Use it to explore unfamiliar files before requesting design context.
Instructions
Do what: Returns XML document outline for a Figma design file — node IDs, layer names, types, positions, sizes. Expected output: XML string of the document tree rooted at nodeId (or list of pages when nodeId is omitted). Use this to explore unfamiliar files before calling get_design_context. Prefer get_design_context for design-to-code. IMPORTANT: Only works on /design/ files. When nodeId is omitted, lists top-level pages only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | Node ID in format "123:456". Omit to list pages. Do not pass empty string. | |
| fileKey | Yes | Extract from URL: https://figma.com/design/{fileKey}/... |