Get a Liro component's code
get_component_codeThe complete source for one component and every file it imports, ready to save at the paths given. Free components need a free Liro account's token; Pro components need the caller's Liro lifetime access. Install with the shadcn CLI instead when you can run commands (see get_installation).
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 | A component slug, like "data-table". | |
| include_dependencies | No | Also return every file it imports (the theme, foundations, sibling components). Default true. Set false only if those are already in the project. |