MCPcopy Index your code
hub / github.com/github/copilot-sdk / allowed_handler

Method allowed_handler

python/e2e/test_tools_e2e.py:355–357  ·  view source on GitHub ↗
(invocation: ToolInvocation)

Source from the content-addressed store, hash-verified

353 excluded_tool_called = False
354
355 def allowed_handler(invocation: ToolInvocation) -> ToolResult:
356 input_val = (invocation.arguments or {}).get("input", "")
357 return ToolResult(text_result_for_llm=f"ALLOWED_{input_val.upper()}")
358
359 def excluded_handler(invocation: ToolInvocation) -> ToolResult:
360 nonlocal excluded_tool_called

Callers

nothing calls this directly

Calls 2

ToolResultClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected