Edit
EditReplace text in a specified file by finding a string and substituting it, with count=0 replacing all matches and returning the number replaced.
Instructions
String replace; count=0 means replace all. Return JSON {"replaced": n}.
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>",
"find": "<find>",
"replace": "<replace>"
},
"name": "Edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | ||
| path | Yes | ||
| count | No | ||
| replace | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |