Get Dev Kit Component Markup
devkit_get_component_markupFetch the HTML markup for a Dev Kit Italia web component variant, defaulting to the first variant when omitted. Uses Storybook snapshot data.
Instructions
Returns the HTML markup for one specific variant of a Dev Kit Italia web component. Markup extracted from Storybook via CI snapshot. If variant is omitted returns the default (first) variant.
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": {
"component": "<component>"
},
"name": "devkit_get_component_markup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variant | No | Variant name. Omit for the default (first) variant. | |
| component | Yes | Component name or slug (e.g. "accordion", "icon") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| result | Yes | ||
| variant | Yes | ||
| component | Yes |