Load Preset
load_presetActivate a UI preset bundle by ID to load design tokens, component templates, and layout templates. Resolves inheritance chains automatically and must be called before correction or validation tools.
Instructions
Activate a UI preset bundle by ID. Loads all tokens, component templates, and layout templates. Resolves inheritance (extends) chain automatically, deep-merging parent tokens. Must be called before any correction, validation, or generation tools.
Args:
preset_id (string): Folder name in /presets (e.g. 'glassmorphic-base', 'client-fintech')
force_reload (boolean): Bypass cache and re-read from disk (default: false)
Returns: Preset manifest summary and token count confirmation. Error: "Preset 'x' not found" if the preset directory doesn't exist.
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": "load_preset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset_id | Yes | Preset folder name in /presets (e.g. 'glassmorphic-base') | |
| force_reload | No | Bypass cache and re-read from disk |