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

Function allowed_tools_for_subagent

mini_claude_code/multi_agent.py:104–110  ·  view source on GitHub ↗

源码: lib.rs:1503-1582 查白名单,找不到就用 general-purpose 的默认白名单。 注意: 返回的是不可变集合,防止调用方修改。

(subagent_type: str)

Source from the content-addressed store, hash-verified

102
103
104def allowed_tools_for_subagent(subagent_type: str) -> frozenset[str]:
105 """源码: lib.rs:1503-1582
106
107 查白名单,找不到就用 general-purpose 的默认白名单。
108 注意: 返回的是不可变集合,防止调用方修改。
109 """
110 return TOOL_WHITELIST.get(subagent_type, TOOL_WHITELIST["general-purpose"])
111
112
113# ============================================================

Callers 1

spawn_agentMethod · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected