mcp-text-editor
by tumf
delete_text_file_contents
Delete specified content ranges from a text file. The file must exist. File paths must be absolute. You need to provide the file_hash comes from get_text_file_contents.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
encoding | No | Text encoding (default: 'utf-8') | utf-8 |
file_hash | Yes | Hash of the file contents for concurrency control. it should be matched with the file_hash when get_text_file_contents is called. | |
file_path | Yes | Path to the text file. File path must be absolute. | |
ranges | Yes | List of line ranges to delete |