edit_file
Replace an exact string in a project file with a new string, editing a single occurrence per call.
Instructions
Replace an exact string in a project file (single occurrence edit).
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": {
"projectId": "<projectId>",
"path": "<path>",
"oldString": "<oldString>",
"newString": "<newString>"
},
"name": "edit_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ||
| path | Yes | ||
| oldString | Yes | ||
| newString | Yes |