get_metadata_with_tokens
Get Figma metadata appended with applied tokens for each node. Identify gaps where tokens are missing and view coverage statistics.
Instructions
STEP 2 of the recommended flow (call list_tokens first to see which tokens exist before fetching the whole tree). Returns a Figma MCP-style get_metadata XML tree for a Figma file or node, decorated with Tokens Studio applied tokens on every node. Every element gets a <tokens .../> child; nodes without applied tokens emit . The root element carries a token-coverage="/" attribute. Nodes with visual styling (shared styles, raw fills/strokes/effects) but no covering token get an untokenized="fill,stroke,…" attribute on their tokens element. x/y/w/h are omitted by default — pass layout=true if you need them. Composition tokens are stripped by default (they duplicate individual property tokens); pass includeComposition=true to include them. Pass format='tree' for a compact markdown tree (~50% fewer tokens than XML).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| depth | No | ||
| format | No | ||
| layout | No | ||
| nodeId | No | ||
| fileKey | No | ||
| onlyGaps | No | ||
| withVectors | No | ||
| onlyWithTokens | No | ||
| withComponents | No | ||
| includeComposition | No |