Get one Klar chart
get_chartFetch complete details for a specific chart by id or name, including props, data types, usage example, required files, npm packages, and import paths.
Instructions
Everything needed to use one chart: description, tags, its props (with comments) and data types taken from the component source, a usage example, the files and npm packages it needs, whether it is standalone, and for a bespoke chart the dashboard it belongs to. Accepts an id from list_charts, a short id ("candlestick"), a component name ("KaplanMeier") or a name.
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_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Chart id, e.g. "fin-candlestick", "sci-kaplan-meier", "spend-sankey" | |
| target_dir | No | Install folder, used for the import paths in the example | src/klar |