Get a Kodza component
get_componentFetch a Kodza UI component's HTML, CSS, JS, API, keyboard behavior, dark-mode values, and install notes by slug, with options to exclude inline files and target a stack.
Instructions
The full code of one Kodza component (HTML, CSS and, when it has one, vanilla JS), its API (CSS variables with defaults, modifier classes, data attributes, events), what each key does when it takes the keyboard, its dark-mode values and its install notes. Its CSS and JS are also available as files at the URLs listed in its Files section; with inline: false, the answer leaves them out of the Code section. target narrows the install notes to one stack.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The component slug, from search_components (e.g. "button-fill") | |
| inline | No | false: the Code section leaves out the CSS and JS, which stay available as files at the listed URLs. true by default: the whole code inline | |
| target | No | Where it goes: html (a plain page), artifact (a Claude artifact on claude.ai), wordpress, shopify or react. All of them when omitted |