get_component
Retrieve the source code for any Gluestack UI component by name. Specify a variant like nativewind or themed to get the exact code you need.
Instructions
Get the source code for a specific Gluestack UI component
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"
}
}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 (defaults to nativewind if available) |