edit
Replace one occurrence of a specified text in a file with new content, enabling targeted edits without changing other matches.
Instructions
Replace one occurrence of old_string with new_string in a 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": {
"file_path": "<file_path>",
"old_string": "<old_string>",
"new_string": "<new_string>",
"project_path": "<project_path>"
},
"name": "edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| new_string | Yes | ||
| old_string | Yes | ||
| project_path | Yes |