fs_file_replace
Replaces specified text within a file and returns the number of matches found. Solves the need to update content in files programmatically.
Instructions
Replace text content inside file, return match count.
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": {
"file_path": "<file_path>",
"search_term": "<search_term>",
"replacement": "<replacement>"
},
"name": "fs_file_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| replacement | Yes | ||
| search_term | Yes | ||
| line_separator | No |