Read a Klar source file
read_fileFetches the source of a kit or dashboard file so you can study or adapt it; use a path relative to the kit root.
Instructions
Returns the source of one kit or dashboard file, e.g. "components/charts/finance/Candlestick.tsx", "dashboards/orbit/index.tsx" or "klar.css". Imports use the "@/" alias for the kit root; the install tools rewrite them to relative paths. Use it to study or adapt a file, not to copy it by hand.
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": {
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path relative to the kit root (get_chart and get_dashboard list them) |