Live function discovery

This page defines a stateful window.CounterApp. The library discovers its methods, registers them through document.modelContext.registerTool(), and the controls below invoke the registered tools—not the functions directly.

Counter state

0

Discovering tools…

Registered definitions and latest result

Waiting for registration…