get_component_code
Retrieve copy-paste React/TSX code for a Joko UI component, including imports and responsive Tailwind CSS classes, to add it directly to your project.
Instructions
Get React/TSX code for a specific Joko UI component. Returns production-ready, copy-paste component code that you can use directly in your Tailwind CSS project. Includes all necessary imports and responsive classes.
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": {
"componentId": "<componentId>"
},
"name": "get_component_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Output language format (default: tsx) | tsx |
| componentId | Yes | Component ID (e.g., 'alerts', 'buttons', 'heroes', 'pricing') |