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

Function _parse_tool_input

tutorials/15_permission_and_hook_pipeline.py:423–428  ·  view source on GitHub ↗

解析工具输入 — 源码 hooks.rs:214-216

(tool_input: str)

Source from the content-addressed store, hash-verified

421
422
423def _parse_tool_input(tool_input: str) -> Any:
424 """解析工具输入 — 源码 hooks.rs:214-216"""
425 try:
426 return json.loads(tool_input)
427 except json.JSONDecodeError:
428 return {"raw": tool_input}
429
430
431# ============================================================

Callers 1

_run_commandsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected