patch_file
Edit a text file by exact search and replace, then publish. Each old_text must match exactly once.
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": {
"site": "<site>",
"path": "<path>",
"edits": "<edits>"
},
"name": "patch_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| site | Yes | ||
| edits | Yes | Edits applied in order. | |
| message | No |