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

Method getToolHandler

go/session.go:590–595  ·  view source on GitHub ↗

getToolHandler retrieves a registered tool handler by name. Returns the handler and true if found, or nil and false if not registered.

(name string)

Source from the content-addressed store, hash-verified

588// getToolHandler retrieves a registered tool handler by name.
589// Returns the handler and true if found, or nil and false if not registered.
590func (s *Session) getToolHandler(name string) (ToolHandler, bool) {
591 s.toolHandlersM.RLock()
592 handler, ok := s.toolHandlers[name]
593 s.toolHandlersM.RUnlock()
594 return handler, ok
595}
596
597// registerPermissionHandler registers a permission handler for this session.
598//

Callers 1

handleBroadcastEventMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected