Merge Fork
merge_forkMerge all pages from a fork workspace into live content, updating matching URLs, creating missing pages, recording conflicts, and returning counts and IDs. Requires admin role.
Instructions
Merge all pages in a fork workspace into live content. Requires admin role.
For each page in the fork:
If a matching live page exists (same URL): updates it with the fork content (fork wins). If the live page was edited after the fork was created, records a conflict but still merges.
If no live page exists at that URL: creates a new live page. It keeps the publish state it had in the fork (normally draft) unless publish_new is true, which publishes it. Pages on hold always stay drafts.
After merging, the fork status changes to "merged", its page copies are deleted, and the created/updated counts are kept on the fork record. Published live pages are regenerated immediately.
Returns: updated and created counts, created_ids and updated_ids (live page IDs), not_published (new pages publish_new left as drafts, with the reason), and any conflicts detected.
ALWAYS confirm with the user before merging, as this pushes changes to the live site.
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": {
"fork_id": "<fork_id>"
},
"name": "merge_fork"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fork_id | Yes | Fork workspace ID to merge into live,required | |
| publish_new | No | Also publish the pages this merge creates. Default false: new pages keep the publish state they had in the fork (normally draft). Pages on hold always stay drafts |