emacs_buffer_write
Replace the entire content of an Emacs buffer and optionally save it to the underlying file. Use this tool to programmatically update or overwrite buffer text in Emacs.
Instructions
Write/replace content in an Emacs buffer
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>",
"content": "<content>"
},
"name": "emacs_buffer_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Whether to save the buffer to file (default: false) | |
| buffer | Yes | Buffer name | |
| content | Yes | New content for the buffer |