file_replace
Replaces an exact text substring in a target file to update specific content without rewriting the whole file.
Instructions
Replace exact text substring within a target file.
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>",
"target": "<target>"
},
"name": "file_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Target file path. | |
| target | Yes | Exact text substring to replace. | |
| replacement | No | Replacement text substring. |