Force-push a squashed snapshot to a mirror remote (destructive)
rrt_publish_snapshotForce-push a single-commit snapshot of tracked content to a secondary remote. Requires explicit confirmation and dry-run disabled to overwrite remote history.
Instructions
Force-push a single-commit snapshot of tracked content to a secondary remote.
dry_run=True by default. The force-push requires BOTH dry_run=False AND
confirm=True -- mirroring the CLI's rrt git publish-snapshot, which
requires an explicit --yes-i-know-this-overwrites-remote-history flag in
addition to not passing --dry-run (two independent signals for one
destructive, history-rewriting operation). If confirm is omitted or False,
the call is always treated as a dry-run preview, regardless of dry_run.
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": {
"remote": "<remote>"
},
"name": "rrt_publish_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | main | |
| remote | Yes | ||
| confirm | No | ||
| dry_run | No | ||
| exclude | No | ||
| message | No | Initial commit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| branch | Yes | ||
| remote | Yes | ||
| dry_run | Yes | ||
| published | Yes | ||
| excluded_paths | No |