figma_design_system
Export or diff a Figma file's local design system as a comparable JSON snapshot of styles, variables, and components; inventory, export, and diff are read-only.
Instructions
Export or diff the file's local design system as one comparable snapshot: paint/text/effect/grid styles, variable collections with modes and per-mode values, and components/component sets with their property definitions. "inventory" returns the snapshot; "export" writes it to a JSON file and returns the path, byte count and sha256; "diff" compares that file with the live file and reports added/removed/changed by stable key, not by name. Read-only: it never creates or changes a style, variable or component.
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_design_system"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | export: destination JSON; diff: the previous export to compare against | |
| action | No | inventory | |
| 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. | |
| include | No | Sections to include; default all three | |
| maxDiff | No | diff: list at most this many entries per bucket | |
| maxItems | No | Snapshot item cap; truncation is reported |