Create DataLens wizard chart
datalens_charts_wizard_createCreates a wizard chart in a DataLens workbook and returns its id. Use it to add a sources-and-visualization chart, then read or update it with the wizard chart tools.
Instructions
Create a chart of the wizard in a workbook and return it with its id.
The entry.data of a chart read with charts_wizard_get is a valid data.
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": {
"data": "<data>"
},
"name": "datalens_charts_wizard_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | The entry's key, in a folder. | |
| data | Yes | What the chart holds: `sources` and `visualization`. Its schema is not listed here: read `WizardChartData` with schema_get(service="datalens", name="WizardChartData"), then the definitions it refers to. | |
| name | No | The chart's name. | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). | |
| annotation | No | A description of the chart. | |
| workbook_id | No | The workbook to create it in. |