add_website_page
Adds a new page to the user's EXISTING site and links it in the navbar. Exact pre-built page templates exist for /blog (live blog API), /about, /services, /contact, /privacy, and /terms. For all other page intents (e.g. personal portfolio showcases, facility tours, admissions, team, custom landing pages, product showcases), HamroLink builds a theme-aligned custom HTML/CSS page using our declarative SDK attributes (data-hl-contact, data-hl-action) and site theme tokens. You can also pass 'html', 'css', optional browser-side 'js' (executed in an isolated sandboxed iframe), or 'prompt' directly.
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": {
"pageName": "<pageName>"
},
"name": "add_website_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| js | No | Optional browser-side JavaScript for interactive DOM manipulation, event listeners, calculators, quizzes, or animations (executed in an isolated sandboxed iframe with restrictive CSP). | |
| css | No | Optional scoped CSS styling for the custom HTML page. | |
| html | No | Optional raw custom HTML content. When provided, creates a custom HTML/CSS/JS page. | |
| slug | No | URL path slug (e.g. '/blog', '/services', '/about', '/contact', '/portfolio-v2', '/facility') | |
| prompt | No | Optional instructions or content brief describing what to build on the custom page (e.g. 'Personal portfolio with projects and contact form' or 'School science lab and campus facilities'). | |
| siteId | No | Optional Site ID. If omitted, applies to the user's active/latest website. | |
| pageName | Yes | Name of the page (e.g. 'Blog', 'Services', 'About Us', 'Contact', 'Portfolio V2', 'Facility') | |
| pageType | No | Template layout structure. Exact templates exist for blog, services, about, contact, privacy, and terms. Use 'custom' or 'blank_html' for custom HTML/CSS/JS pages. | |
| useCustomPrimitives | No | Set to true only if the user explicitly commanded building a custom section-by-section layout instead of using the standard template. |