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

Method invoke

python/copilot/session.py:1318–1324  ·  view source on GitHub ↗
(self, params: CanvasProviderInvokeActionRequest)

Source from the content-addressed store, hash-verified

1316 raise _canvas_handler_error(err) from err
1317
1318 async def invoke(self, params: CanvasProviderInvokeActionRequest) -> Any:
1319 try:
1320 return await self._handler.on_action(params)
1321 except CanvasError as err:
1322 raise JsonRpcError(-32603, err.message, data=err.to_envelope()) from err
1323 except Exception as err:
1324 raise _canvas_handler_error(err) from err
1325
1326
1327def _canvas_handler_error(err: Exception) -> JsonRpcError:

Callers

nothing calls this directly

Calls 4

JsonRpcErrorClass · 0.90
_canvas_handler_errorFunction · 0.85
to_envelopeMethod · 0.80
on_actionMethod · 0.45

Tested by

no test coverage detected