Set page URL
set_site_urlAssign a full URL to a Convika landing page, including custom-domain paths such as https://www.example.com/ or https://www.example.com/lp2.
Use this when the user asks to create, move, preview, or publish a page at a specific URL. Prefer this over setup_custom_domain when a path is included.
- A root URL such as https://example.com/lp2 is connected as https://www.example.com/lp2: www.example.com is the site, and example.com redirects to it (301, path kept) once the user adds the records in guidance.rootRedirect (A @ to Convika's IPv4, CNAME www). If example.com already shows another site, Convika connects only www and leaves example.com alone; guidance.rootRedirect says so. If the response has guidance.rootNotServed instead, example.com won't open the page: tell the user to share the www URL.
- If the site is new, Convika creates the custom-domain claim and returns the CNAME routing record plus TXT ownership record.
- If the site is already connected to this workspace, Convika only adds the path route. An active site needs no DNS work. A site still pending verification keeps the CNAME and TXT values from its first setup: the response repeats them, and the TXT value stays the same across calls.
- invalid_hostname means the site can't be used as a custom domain (for example, reserved names such as anything.example.com). Ask the user for a site on a domain they own. It is not a DNS delay and not a Convika-side fault.
- If another workspace has a pending claim, Convika can still start DNS control verification for this workspace; pending claims are not ownership.
- If another workspace actively manages the site, do not take over automatically. Explain the options: ask for an invite, use another domain, or explicitly start DNS control verification and then move the domain to this workspace (activate_domain_handover).
- Path routing is exact: /lp2 and /lp2/ normalize to the same route, but /lp2/thanks is a different route.
- If guidance.existingSite is present, another site shows there now and connecting would replace that whole site. Tell the user before any DNS change, as the text says.
- Outside Convika: the tool looks the hostname up in public DNS and requests what it serves now (for guidance.existingSite), and registers a hostname new to Convika with Convika's certificate provider, which issues its HTTPS certificate once the DNS records point at Convika. The user's DNS settings change only when the user adds the records.
- On a site already connected, a published page opens at the URL at once. It adds a route and removes no page: a path another page serves is refused (route_conflict), and a path left by move_page answers this page in place of its redirect.
- After this tool succeeds, use create_preview; the preview response can use the assigned URL path.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": {
"siteId": "<siteId>",
"url": "<url>"
},
"name": "set_site_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The full URL to assign, for example 'https://www.example.com/' or 'https://www.example.com/lp2'. Query strings and hashes are ignored. | |
| siteId | Yes | The ID of the page to assign the URL to | |
| makePrimary | No | Whether this URL should become the page's canonical/primary URL. On a domain not connected yet, it becomes primary once the domain connects (route.mainOnConnect true, isPrimary false until then). |