get_component_demo
Retrieve demo code illustrating proper usage of any Gluestack UI component, with variant options for nativewind, themed, or unstyled.
Instructions
Get demo code illustrating how a Gluestack UI component should be used
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": {
"componentName": "<componentName>"
},
"name": "get_component_demo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| componentName | Yes | Name of the Gluestack UI component (e.g., 'Button', 'Input', 'Modal') | |
| variant | No | Component variant to retrieve demo for (defaults to nativewind) |