Get a DataLens dashboard screenshot
datalens_screenshots_dashboard_getCapture a screenshot of a saved DataLens dashboard and return a file link by default, with options for image format, dimensions, full-page capture, and query parameters.
Instructions
A picture of a saved dashboard, 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": {
"dash_id": "<dash_id>"
},
"name": "datalens_screenshots_dashboard_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. | |
| dash_id | Yes | The dashboard to capture. | |
| full_page | No | Capture the whole page, not one screen of it. | |
| query_params | No | Parameters of the page: {"tab": "<tab id>"} picks a tab, {"_theme": "dark"} the dark theme; a dashboard parameter goes by its name. |