Get a site's preview URL
get_preview_urlReturns the shareable preview URL for a site, plus its expiry. The create tools already return this URL, so call this only when you need it again later. Free, and no account is needed for a draft you created. You can edit or claim this draft for 7 days from creation.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_preview_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| share_id | No | Alternative lookup by share id, honoured only when it belongs to the caller. | |
| site_key | No | The site to preview. Defaults to the caller's current draft site when omitted. | |
| draft_token | No | The draft token returned by draft_create, if you are working on an anonymous draft. Only needed when your client cannot send the x-pagetool-draft-token header. |