get_component_demo
Retrieve demo code and usage examples for a UI component. Specify the component name and optionally the demo index.
Instructions
Get demo code and usage examples for a specific 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": {
"name": "<name>"
},
"name": "get_component_demo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the component | |
| demoIndex | No | Index of the demo to retrieve (defaults to 0) |