Get DataLens QL chart
datalens_charts_ql_getRetrieve a flat DataLens QL chart by ID, with optional branch, revision, links, permissions, and favorite status.
Instructions
One QL chart. Unlike a chart of the wizard it comes flat, with no entry around it.
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_ql_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | The version to read when no revision is named: `saved` or `published`. A save writes the saved one: read `saved` before changing a chart. | |
| rev_id | No | One revision to read, as it is; give it or `branch`, not both. | |
| chart_id | Yes | Chart id. | |
| workbook_id | No | The workbook the chart lies in. | |
| include_links | No | Also say what it is linked to. | |
| include_favorite | No | Also say whether it is a favourite of the caller. | |
| include_permissions | No | Also say what the caller may do with it. |