MCPcopy Create free account
hub / github.com/github/copilot-sdk / ToolInvocation

Class ToolInvocation

python/copilot/tools.py:45–51  ·  view source on GitHub ↗

Context passed to a tool handler when invoked.

Source from the content-addressed store, hash-verified

43
44@dataclass
45class ToolInvocation:
46 """Context passed to a tool handler when invoked."""
47
48 session_id: str = ""
49 tool_call_id: str = ""
50 tool_name: str = ""
51 arguments: Any = None
52
53
54ToolHandler = Callable[[ToolInvocation], ToolResult | Awaitable[ToolResult]]

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…