set_variable_scopes
Restrict where a design variable applies by replacing its allowed scopes, such as fills, text, spacing, radius, or opacity, to keep tokens used correctly.
Instructions
Limit where a variable can be used (scopes such as ALL_SCOPES, GAP, CORNER_RADIUS, WIDTH_HEIGHT, ALL_FILLS, FRAME_FILL, SHAPE_FILL, TEXT_FILL, STROKE_COLOR, TEXT_CONTENT, OPACITY, FONT_SIZE...). Replaces the existing scopes.
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": {
"variableId": "<variableId>",
"scopes": "<scopes>"
},
"name": "set_variable_scopes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scopes | Yes | Allowed usages | |
| variableId | Yes | ID of the variable |