Get usage example
get_usage_exampleGenerate JSX usage examples for React library components and validate optional props against the library, reporting invalid variants or sizes instead of using them silently.
Instructions
Generates a JSX example for a component. Optional props are validated against the library, so invalid variants or sizes are reported instead of silently 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": {
"name": "<name>"
},
"name": "get_usage_example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Component name, e.g. Button | |
| props | No | Props to include, e.g. { "variant": "danger", "size": "small" } |