set_tokens
Update, rename, or delete design tokens by their CSS variable name. Set new values, alias via var(), or remove tokens, with per-entry error responses.
Instructions
Update or delete existing design tokens by their full CSS variable name. Each entry needs name; any of newName, value, delete are optional.
Rename: set
newName.Update value: set
value. Usevar(--other-token)to alias.Delete the design token: set
delete: true. Returns one result per input entry. Per-entry errors are reported in-band.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tokens": "<tokens>"
},
"name": "set_tokens"
}
}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 update or delete, applied sequentially. |