load_preset
Activate 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.
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 |