Remote Apply Patch
remote_apply_patchApply text edits to remote HPC files only when the file hash and expected text-match counts agree, preventing stale or mismatched changes.
Instructions
Apply text edits only when the remote revision and match counts agree.
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>",
"relative_path": "<relative_path>",
"expected_sha256": "<expected_sha256>",
"edits": "<edits>"
},
"name": "remote_apply_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | ||
| project_id | Yes | ||
| relative_path | Yes | ||
| expected_sha256 | Yes |