get_component_code
Retrieve complete React, Tailwind, and Framer Motion source code, demo, and dependencies for any component. Fetches live from registry if not found offline.
Instructions
Retrieves complete React, Tailwind, Framer Motion source code, demo, and dependencies for a component. Supports fallback live fetching.
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": {
"slug": "<slug>"
},
"name": "get_component_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Unique component slug e.g. 'glowing-card', 'floating-dock', 'bento-grid-3x3' | |
| registryUrl | No | Optional 21st.dev registry URL to fetch live if not found offline |