edit_source_file
Modify one source file with exact unique replacements and the SHA256 from read_source_file, or create a new file in an existing directory. Requires source write opt-in and never deletes files.
Instructions
Edit one source file using exact unique replacements and the SHA256 returned by read_source_file. NEW creates a file exclusively in an existing directory using content. Requires source write opt-in; never deletes files.
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": {
"path": "<path>",
"expected_sha256": "<expected_sha256>"
},
"name": "edit_source_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | No | ||
| replacements | No | ||
| expected_sha256 | Yes |