def on_pre_tool_use(tool, args): cmd = args.get("command", "") if "rm -rf" in cmd or "rm -fr" in cmd: return {"deny": True, "reason": "rm -rf 패턴 차단"}