Create DataLens HTML page
datalens_htmlpages_createCreate and publish an HTML page in DataLens, returning its entry and HTML warnings so you can validate the published output.
Instructions
Create an HTML page; the reply has it under entry and warnings about its HTML.
Creating publishes: the page is saved and published at once. A draft comes with the first
htmlpages_update with mode="save".
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": {
"content": "<content>"
},
"name": "datalens_htmlpages_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | The page's key, in a folder. | |
| name | No | The page's name, in a workbook. | |
| content | Yes | The HTML of the page. | |
| 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 page. | |
| workbook_id | No | The workbook to create the page in. |