royal-mcp__wp_create_preview_link
Create a token-authenticated preview URL for a post/page/CPT so an agent can self-validate rendered output without WP session cookies. Wraps a random 32-char token stored in a transient + a redirect handler that impersonates the token owner and forwards to WordPress's native preview URL. preview_url is for AGENT self-validation — do NOT share with the end user; share edit_url instead. Cap: edit_post on target post_id. (site: demo.royalplugins.com) Through Royally: waits for a person to approve it in Royally; nothing on the site changes until then.
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": {
"post_id": "<post_id>"
},
"name": "royal-mcp__wp_create_preview_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | Post/page/CPT ID to build a preview link for. | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| ttl_minutes | No | Token lifetime in minutes. Default 15, max 1440 (24h). |