set_token
Stage a token write by adding or replacing a token at a given path in a named set of the active catalog's working copy. Edits accumulate until committed.
Instructions
Stage a token write. Adds (or replaces) a token at path in the named set of the active catalog's working copy. Edit accumulates until you call commit_and_push. Use type to give Tokens Studio the correct token type (color / spacing / borderRadius / ...); we'll infer from value shape if omitted.
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": {
"path": "<path>",
"value": "<value>",
"set": "<set>"
},
"name": "set_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | Yes | ||
| path | Yes | ||
| type | No | ||
| value | Yes |