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

Function handle_read

tutorials/18_design_patterns_for_agents.py:707–708  ·  view source on GitHub ↗
(inp: str)

Source from the content-addressed store, hash-verified

705
706 @r.tool("read")
707 def handle_read(inp: str) -> str:
708 return f"cat {json.loads(inp)['path']}"
709
710 print(f" @r.tool('bash') → {r.execute('bash', json.dumps({'command': 'ls'}))}")
711 print(f" @r.tool('read') → {r.execute('read', json.dumps({'path': 'a.py'}))}")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected