demo7_gallery_state
Get the current component gallery state or set a new state with specific component, variant, and theme to update the UI on next render.
Instructions
Get or set the component gallery state. When setting, the server updates its state which the UI can read on next render.
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": {
"action": "<action>"
},
"name": "demo7_gallery_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Get current state or set new state | |
| component | No | Component to display (for set) | |
| variant | No | Variant to display (for set) | |
| theme | No | Theme (for set) |