clone event page
clone_event_pageDeep-copy an event page into the same or another event on a map, previewing the change set before commit. Use it to duplicate page logic without manual rebuilding.
Instructions
Clone a page (deep copy) into the same event or another event on the same map.
Preview-first: returns a change set (semantic + native diff, validation). Pass apply=true to commit immediately when the preview is clean.
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": {
"mapId": "<mapId>",
"eventId": "<eventId>",
"pageIndex": "<pageIndex>"
},
"name": "clone_event_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | Commit right after a successful preview (non-destructive operations only; needs --allow-write; warnings also need acknowledgeWarnings). Default false = preview only. | |
| mapId | Yes | Map ID (from list_maps) | |
| eventId | Yes | Map event ID | |
| insertAt | No | ||
| pageIndex | Yes | ZERO-based page index (Page 1 in the editor = pageIndex 0) | |
| allowScript | No | true ONLY if the user explicitly asked to insert JavaScript (script commands, script conditions/operands, route scripts). | |
| description | No | Optional description stored in the transaction log | |
| destEventId | No | ||
| acknowledgeWarnings | No | Accept validation warnings when apply=true. Review them with the user first. |