Swap Template
swap_templateSwitch between UI design presets during development without restarting the server. Maintains token overrides when needed for consistent component styling.
Instructions
Hot-swap the active preset without restarting the server. Useful for switching between client presets while building. Optionally preserves any runtime token overrides applied in the current session.
Args:
preset_id (string): The preset to switch to
preserve_overrides (boolean): Keep current overrides after swap (default: false)
Returns: New active preset summary.
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": {
"preset_id": "<preset_id>"
},
"name": "swap_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset_id | Yes | The preset to switch to | |
| preserve_overrides | No | Keep current overrides after swap |