Insert or delete bytes
fs_spliceInsert or delete bytes at a specified file offset, optionally creating directories, while enforcing hash checks unless forced. Use it for precise binary or text edits without adding newlines.
Instructions
offset is a byte count, start, or end. Provide exactly one of insert or insert_hex. No newline is added. An existing file requires expect_hash unless force is set.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fs_splice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | path | |
| force | No | force | |
| insert | No | insert | |
| offset | No | offset | |
| encoding | No | encoding | |
| insert_hex | No | insert_hex | |
| create_dirs | No | create_dirs | |
| expect_hash | No | expect_hash | |
| delete_bytes | No | delete_bytes |