fs_file_replace
Replace text in-place within a file and get the number of matched lines. Specify file path, search term, and replacement string.
Instructions
In-place text replace, return matched line 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||