Replace Hard-Coded Values
replace_hard_coded_valuesReplace hard-coded design values in code with Optics design tokens for consistent theming. Use autofix to apply changes automatically.
Instructions
Replace hard-coded values with design tokens
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": {
"code": "<code>"
},
"name": "replace_hard_coded_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code containing hard-coded values | |
| autofix | No | Whether to automatically fix the code (default: false) |