create_preview
A live preview page of a version or alias of a document, for showing a person. A version's preview never changes; an alias's follows it as it moves. The URL works for 12 hours.
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": {
"document_id": "<document_id>"
},
"name": "create_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | An alias, such as `latest`; `latest` when neither this nor `version` is given. | |
| version | No | A version, by number. | |
| document_id | Yes | The document to preview. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The preview page on rendermate.com; the credential rides in its fragment, so it never reaches a server's logs. | |
| token | Yes | The preview credential itself, for the document's events feed (`?token=`). | |
| target | Yes | ||
| expires_at | Yes | RFC 3339. | |
| document_id | Yes | The document it previews. |