Get a DataLens chart screenshot
datalens_screenshots_chart_getCapture a saved DataLens chart as a PNG or JPEG image, with optional page size, theme, query parameters, full-page capture, and S3 or base64 output.
Instructions
A picture of a saved chart, rendered by DataLens: by default a link to its file.
The picture shows the data. DataLens takes about three of these a minute. Experimental.
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_screenshots_chart_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| s3 | No | Put the file in S3 and `data` is its link; the default unless base64. | |
| type | No | The format of the picture: png (the default), jpeg or jpg. | |
| width | No | The width of the page in pixels, at most 6000. | |
| base64 | No | Put the file itself in `data`, base64-encoded: large, ask first. | |
| height | No | The height of the page in pixels, at most 6000. | |
| chart_id | Yes | The chart to capture. | |
| full_page | No | Capture the whole page, not one screen of it. | |
| query_params | No | Parameters of the page: values of the chart's parameters by name, {"_theme": "dark"} for the dark theme. |