replace_block
Replace a marker-delimited block in a file while preserving encoding, newline style, and using base-hash for integrity verification.
Instructions
Replace a marker-delimited block with base-hash protection and style preservation.
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": {
"path": "<path>",
"start_marker": "<start_marker>",
"end_marker": "<end_marker>",
"replacement": "<replacement>"
},
"name": "replace_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bom | No | preserve | |
| mode | No | between | |
| path | Yes | ||
| newline | No | preserve | |
| encoding | No | preserve | |
| base_hash | No | ||
| end_marker | Yes | ||
| occurrence | No | ||
| replacement | Yes | ||
| start_marker | Yes | ||
| final_newline | No | preserve |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |