file_patch
Replace specified text in project files to apply localized modifications.
Instructions
对项目文件进行局部替换修改
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>",
"oldString": "<oldString>",
"newString": "<newString>"
},
"name": "file_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| newString | Yes | ||
| oldString | Yes |