Get component source
get_componentRetrieve a single accessible UI component by ID with plain HTML/CSS/JS and React source, WCAG criteria, labels, and accessibility notes; pro components return only a spec and lock notice.
Instructions
Return one component: plain HTML/CSS/JS source, a React version, WCAG criteria, accessibility notes and labels. Pro components return the spec and a lock notice instead of source.
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": {
"id": "<id>"
},
"name": "get_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Component id from list_components, for example "big-action-button". | |
| include_code | No | Set false to get only metadata, criteria and notes. |