Skip to content

Commit 55356a0

Browse files
committed
docs: update descriptions in delete_text_file_contents and insert_text_file_contents handlers to clarify the requirement for file_hash from get_text_file_contents
1 parent 40cbb90 commit 55356a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/mcp_text_editor/handlers/delete_text_file_contents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class DeleteTextFileContentsHandler(BaseHandler):
1717
"""Handler for deleting content from a text file."""
1818

1919
name = "delete_text_file_contents"
20-
description = "Delete specified content ranges from a text file. The file must exist. File paths must be absolute."
20+
description = "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."
2121

2222
def get_tool_description(self) -> Tool:
2323
"""Get the tool description."""

src/mcp_text_editor/handlers/insert_text_file_contents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class InsertTextFileContentsHandler(BaseHandler):
1717
"""Handler for inserting content before or after a specific line in a text file."""
1818

1919
name = "insert_text_file_contents"
20-
description = "Insert content before or after a specific line in a text file. Uses hash-based validation for concurrency control."
20+
description = "Insert content before or after a specific line in a text file. Uses hash-based validation for concurrency control. You need to provide the file_hash comes from get_text_file_contents."
2121

2222
def get_tool_description(self) -> Tool:
2323
"""Get the tool description."""

0 commit comments

Comments
 (0)