patch_file
Replace exact text inside a UTF-8 file within allowlisted development folders. Use it to apply precise, targeted edits to project files without rewriting entire contents.
Instructions
Replace exact text inside a UTF-8 file in an allowlisted development folder.
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>",
"search": "<search>",
"replace": "<replace>"
},
"name": "patch_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| search | Yes | ||
| replace | Yes | ||
| replace_all | No |