Get a document
get_componentRetrieve a Perfect UI 1.0.0 document by slug to get its full Markdown, HTML examples, and exact pui-* classes, so you can copy correct markup instead of writing classes from memory.
Instructions
The full Markdown of one Perfect UI 1.0.0 document, with its HTML examples and the pui-* classes they use. Copy markup from the examples instead of writing classes from memory. Names come from list_components.
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": {
"name": "<name>"
},
"name": "get_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | document slug, for example button, modal or dark-mode |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | path in the library repository | |
| slug | Yes | ||
| title | Yes | ||
| classes | Yes | pui-* classes used in the examples | |
| section | Yes | ||
| version | Yes | ||
| examples | Yes | the document's html code blocks | |
| markdown | Yes | ||
| description | Yes |