Land a branch onto a protected trunk
rcs_landLAND a branch onto a protected trunk through the merge-result GATE (the trunk gate / branch protection): admitted ONLY if 'from' DESCENDS from the current 'into' tip (so the commit that was tested IS the commit that lands — the merge-queue insight; a stale branch behind the trunk is refused with status 'stale' — re-integrate via rcs_merge then re-test) AND, when the platform requires tests, 'from's tip carries a PASSING verdict (test_ref it first). A version-guarded fast-forward, so concurrent lands serialize. Returns {RcsLanded:{app,into,commit}}, or {RcsMerged:{status:'stale'|'conflict-retry'}}, or {Rejected} when the verdict gate fires.
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": {
"app": "<app>",
"from": "<from>",
"into": "<into>"
},
"name": "rcs_land"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| from | Yes | ||
| into | Yes | ||
| token | No | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |