figma_foundations
Create or update Design System foundations in the open Figma file: variables, text, colour, effect and grid styles, idempotent by name.
Instructions
Create or update Design System foundations in the open file: a variable collection (COLOR and FLOAT variables, e.g. "color/brand/deep-teal": "#176B66", "radius/media": 20), text styles, colour styles (a hex, a gradient, or bound to a colour variable so the style follows the token), effect styles (shadows, layer/background blur) and grid styles (columns, rows, square grid). Idempotent by name. Rescan the DS afterwards.
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_foundations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | No | #RRGGBB or #RRGGBBAA | |
| numbers | No | ||
| collection | No | Tokens | |
| gridStyles | No | ||
| textStyles | No | ||
| paintStyles | No | ||
| effectStyles | No |