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

Method on_action

python/copilot/canvas.py:162–164  ·  view source on GitHub ↗

Handle a non-lifecycle action declared by the canvas.

(self, ctx: CanvasProviderInvokeActionRequest)

Source from the content-addressed store, hash-verified

160 """Canvas was closed by the user or agent. Default: no-op."""
161
162 async def on_action(self, ctx: CanvasProviderInvokeActionRequest) -> Any:
163 """Handle a non-lifecycle action declared by the canvas."""
164 raise CanvasError.no_handler()

Callers 1

invokeMethod · 0.45

Calls 1

no_handlerMethod · 0.80

Tested by

no test coverage detected