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

Method on_open

python/test_canvas.py:117–121  ·  view source on GitHub ↗
(self, ctx: CanvasProviderOpenRequest)

Source from the content-addressed store, hash-verified

115 self.action_calls: list[CanvasProviderInvokeActionRequest] = []
116
117 async def on_open(self, ctx: CanvasProviderOpenRequest) -> CanvasProviderOpenResult:
118 self.open_calls.append(ctx)
119 return CanvasProviderOpenResult(
120 url="https://canvas.example", title="Hi", status="ready"
121 )
122
123 async def on_close(self, ctx: CanvasProviderCloseRequest) -> None:
124 self.close_calls.append(ctx)

Callers

nothing calls this directly

Calls 3

CanvasErrorClass · 0.90
appendMethod · 0.80

Tested by

no test coverage detected