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

Method on_open

python/copilot/canvas.py:152–157  ·  view source on GitHub ↗

Open a new canvas instance. May raise :class:`CanvasError` to surface a structured failure to the host.

(self, ctx: CanvasProviderOpenRequest)

Source from the content-addressed store, hash-verified

150
151 @abstractmethod
152 async def on_open(self, ctx: CanvasProviderOpenRequest) -> CanvasProviderOpenResult:
153 """Open a new canvas instance.
154
155 May raise :class:`CanvasError` to surface a structured failure to
156 the host.
157 """
158
159 async def on_close(self, ctx: CanvasProviderCloseRequest) -> None:
160 """Canvas was closed by the user or agent. Default: no-op."""

Callers 1

openMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected