Read the data of a DataLens chart
datalens_charts_data_getFetch the rows and columns that a saved chart displays, using its saved settings and optional parameter values for inspection or reuse.
Instructions
The data a saved chart shows, as tables of columns and rows.
The chart runs with its saved settings. chartType says how it is built (wizard,
ql, editor). A pivot table is not supported, and a chart whose source cannot be
reached answers with an error. A chart of the editor with no source did not answer within
the client's wait: the call ends with a timeout after about two minutes (measured, twice).
entries_list with the scope widget finds charts.
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": {
"chart_id": "<chart_id>"
},
"name": "datalens_charts_data_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Values for the chart's parameters, by name: one value or several. | |
| chart_id | Yes | Chart id. |