emacs_buffer_edit
Apply targeted find-and-replace edits to an Emacs buffer and optionally save the buffer to its file.
Instructions
Apply targeted edits to a buffer (find and replace)
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": {
"buffer": "<buffer>",
"old_text": "<old_text>",
"new_text": "<new_text>"
},
"name": "emacs_buffer_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Whether to save the buffer to file (default: false) | |
| buffer | Yes | Buffer name | |
| new_text | Yes | Replacement text | |
| old_text | Yes | Text to find and replace |