cutbolt_session_apply
Commit an atomic editing batch against a project's expected revision. Any failure commits nothing; conflicts return REVISION_CONFLICT so you can re-read and retry safely.
Instructions
Commit an atomic editing batch against expected_revision. Reuse request_id only with identical arguments after a lost response. On REVISION_CONFLICT read and reconsider; returns a receipt with semantic changes.
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": {
"project_id": "<project_id>",
"request_id": "<request_id>",
"expected_revision": "<expected_revision>",
"operations": "<operations>"
},
"name": "cutbolt_session_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes | Editing operations applied in order as one atomic batch; any failure commits nothing. | |
| project_id | Yes | ID of a project saved in store_root. | |
| request_id | Yes | Caller-chosen ID for this change, 1-128 bytes, unique within the project. Resend identical arguments with it to retry safely. | |
| store_root | No | Existing local directory holding the session database (projects.sqlite3) | |
| expected_revision | Yes | Head revision this change was prepared against; a different head fails with REVISION_CONFLICT. |