create_tokens
Create design tokens with type, name, and value, and alias existing tokens using var(--other-token).
Instructions
Create one or more design tokens. Each entry needs type, name, and value.
Use var(--other-token) as the value to alias another design token.
Returns one {name, result: "created"} (or {result: "error", message}) per input entry.
Order is important. For color tokens define semantic colors before palette colors, with neutral colors first, then primary, secondary, and then accent colors. For all other design token types define them based on the size of the value, smallest first.
Prefer reusing design tokens before creating new ones.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Optional. The Paper file ID this call should act on. Pass it to reliably target a specific file when several are open at once (e.g. multiple agents from the same session working in parallel). Omit to use the most recently opened file in the session. | |
| tokens | Yes | Design tokens to create. Each entry creates a new design token; duplicate names are allowed but discouraged. |