Page Toolswordpress_create_page_duplicate

wordpress_create_page_duplicate

Create a duplicate of an existing page for safe editing.

wordpress_create_page_duplicate

Create a duplicate of an existing page for safe editing. After creating a duplicate, edit the duplicate using wordpress_update_page, then approve in WordPress Admin under Respira → Approvals & Undo.

The response includes a share preview link (preview_url): send it to anyone who should see the duplicate before it goes live. It opens with no WordPress login and lasts 14 days by default. See Share preview links.

Parameters

4 parameters, none required.

NameTypeRequiredWhat it is
original_idnumbernoID of the original page to duplicate
page_idnumbernoAlias for original_id, matching the builder page tools
post_idnumbernoAlias for original_id, matching tools that operate on any post type
suffixstringnoOptional suffix for the duplicated page title

Example call

No parameter is required, so the smallest valid call is empty:

{
  "name": "wordpress_create_page_duplicate",
  "arguments": {}
}

Response

{
  "success": true,
  "original_id": 42,
  "duplicate_id": 43,
  "status": "draft",
  "approval_url": "https://yoursite.com/wp-admin/admin.php?page=respira-approvals",
  "preview_url": "https://yoursite.com/?page_id=43&preview=true&respira_preview=43.1790276757.…",
  "preview_expires_at": "2026-09-24T19:05:57+00:00"
}

What it changes

It writes to the site. Respira takes a snapshot before the write, and the change can be undone from that snapshot for 90 days. On a page or post the edit lands on a copy first. The live page changes only when a person approves the copy in wp-admin. Calling it twice does the work twice. On a connection set to read-only it is refused with respira_scope_denied.

When it fails

The failures seen most often on real sites in the last 30 days, most common first:

  • rest_no_route: The WordPress site has no such endpoint. Almost always an old plugin version, or a security plugin blocking the REST API. Update Respira for WordPress on the site and try again.

How long it takes

A typical call takes about 2.2 seconds. 19 in 20 finish within 4.5 seconds. Measured on real sites over the last week, so it includes the site's own hosting.

Availability

Works on any WordPress site, whichever page builder it uses. Available since Respira 1.0.0.

Example Prompts

  • "Create a duplicate of the About page"
  • "Duplicate page 42"
  • "Make a safe copy of my homepage so I can edit it"
  • "Duplicate the About page and give me a share preview link for my client"