Generate page
generate_html_pageBuild an interactive page or small tool the user can run, download as an .html file, or open full page: calculators, converters, quizzes. A dashboard over their brain data is a view (generate_view) and a document to read is generate_markdown. Write one self-contained document under about 40,000 characters, with all CSS and JS inline. No external scripts, fonts or images (use data: URLs). No form submits (use input and click handlers). No alert, confirm or prompt. No links that leave the page, no download buttons, no localStorage. Include and a viewport meta, and make it work at 390px wide. Do not put the user's contacts, emails or CRM records into a page unless they asked. The card shows the page, so never paste the HTML into the reply. Pages are free. To change a page later, call update_html_page instead of this. Do not call this again to retry.
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": {
"html": "<html>"
},
"name": "generate_html_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | The whole page: one HTML document with every style and script inline. | |
| title | No | The page title. Its <title> otherwise. |