sed_edit
Make small edits to files using sed patterns for single-line changes, pattern replacements, and simple text transformations.
Instructions
Make small edits to files using sed patterns. Efficient for single-line changes, pattern replacements, and simple text transformations.
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": "<file>",
"pattern": "<pattern>"
},
"name": "sed_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file to edit | |
| pattern | Yes | Sed pattern (e.g., "s/old/new/g" for substitution) | |
| backup | No | Create backup file before editing | |
| preview | No | Preview changes without modifying file |