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

Function write_tool

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

Source from the content-addressed store, hash-verified

47 return content
48
49def write_tool(input_json:str):
50 data = json.loads(input_json)
51 path = data.get('path', '')
52 content = data.get('content', '')
53 try:
54 with open(path, 'w') as f:
55 f.write(content)
56 except FileNotFoundError:
57 return f'ERROR: directory not found {path}'
58 return f'OK: wrote to {path}'

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected