MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / tool_read_file

Function tool_read_file

tools/file_tools.py:67–80  ·  view source on GitHub ↗

Read file content. Args: path: Path to file Returns: File content or error message

(path: str)

Source from the content-addressed store, hash-verified

65
66
67def tool_read_file(path: str) -> str:
68 """
69 Read file content.
70
71 Args:
72 path: Path to file
73
74 Returns:
75 File content or error message
76 """
77 try:
78 return _get_fs().read(path)
79 except FilesystemAccessError as e:
80 return f"[ERROR] {e}"
81
82
83def tool_write_file(path: str, content: str) -> str:

Callers 1

agent.pyFile · 0.90

Calls 2

_get_fsFunction · 0.85
readMethod · 0.80

Tested by

no test coverage detected