MCPcopy Create free account
hub / github.com/Louisym/MiniCC / read_tool

Function read_tool

mini_claude_code/tools.py:39–47  ·  view source on GitHub ↗
(input_json:str)

Source from the content-addressed store, hash-verified

37 return 'ERROR: timeout for 30s'
38
39def read_tool(input_json:str):
40 data = json.loads(input_json)
41 path = data.get('path', '')
42 try:
43 with open(path, 'r') as f:
44 content = f.read()
45 except FileNotFoundError:
46 return f'ERROR: file not found {path}'
47 return content
48
49def write_tool(input_json:str):
50 data = json.loads(input_json)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected