Tool event listener API

This page demonstrates best-practice event subscriptions for integrating the toolkit into larger apps (e.g. custom topbars, side panels, and state stores).

Two event surfaces:

Tip: always unsubscribe on teardown/unmount to prevent listener buildup.