Update DataLens HTML page
datalens_htmlpages_updateSaves new HTML content for a DataLens page or makes an existing revision current, using save or publish mode to control whether changes are public.
Instructions
Save new HTML of a page, or make one of its revisions the current one.
mode save makes a new revision and leaves the public one; publish shows it to
everyone. With revId, save copies that revision as the current draft.
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": {
"body": "<body>"
},
"name": "datalens_htmlpages_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Either new HTML, `{entryId, content, mode}`, or a revision to make current, `{entryId, revId, mode}`: one of the two, not both. | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). |