Post Toolswordpress_create_post_duplicate

wordpress_create_post_duplicate

Create a duplicate of an existing post for safe editing.

wordpress_create_post_duplicate

Create a duplicate of an existing post for safe editing. After creating a duplicate, edit the duplicate using wordpress_update_post, then approve in WordPress Admin (Respira → Approve Edits).

Parameters

4 parameters, none required.

NameTypeRequiredWhat it is
original_idnumbernoOriginal post ID
post_idnumbernoAlias for original_id, matching tools that operate on any post type
page_idnumbernoAlias for original_id, matching the builder page tools
suffixstringnoOptional suffix

Example call

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

{
  "name": "wordpress_create_post_duplicate",
  "arguments": {}
}

Response

{
  "success": true,
  "original_id": 101,
  "duplicate_id": 202,
  "status": "draft",
  "approval_url": "https://yoursite.com/wp-admin/admin.php?page=respira-approvals"
}

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.

How long it takes

A typical call takes about 3.0 seconds. 19 in 20 finish within 4.6 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

  • "Duplicate post 101"
  • "Create a safe copy of my latest blog post"