Skip to main content
Glama

swap_template

Switch 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
preset_idYesThe preset to switch to
preserve_overridesNoKeep current overrides after swap

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ncsound919/OG-Glass'

If you have feedback or need assistance with the MCP directory API, please join our Discord server