get_component
Generate a JSX snippet with import and element for any Design System component using props and children, while rejecting unsafe values to ensure valid code.
Instructions
Generate a JSX snippet (import + element) for a DS component with the given props/children. Rejects JSX-unsafe prop values.
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 |
|---|---|---|---|
| props | No | Component props (string|number|boolean primitives; nested objects/arrays allowed). | |
| children | No | Children content for the component (JSX or text). | |
| componentName | Yes | PascalCase component name (e.g. "Button", "DatePicker"). |