App identification (name and version)
OptionalautoAutomatically report size changes to the host using ResizeObserver.
When enabled, the App monitors document.body and document.documentElement
for size changes and automatically sends ui/notifications/size-changed
notifications to the host.
Declares what features this app supports.
OptionalonCalled after App is created but before connection.
Use this to register request/notification handlers that need to be in place before the initialization handshake completes.
OptionalstrictThrow on detected misuse instead of logging a console error.
Currently this affects calling host-bound methods (e.g.
callServerTool, sendMessage)
before connect has completed the ui/initialize
handshake. With strict: false (default) a console.error is emitted;
with strict: true an Error is thrown.
Options for configuring the
useApphook.The
autoResizeandstrictoptions are forwarded to the underlyingAppinstance. For otherAppOptions, create theAppmanually instead of using this hook.See
useAppfor the hook that uses these optionsuseAutoResizefor manual auto-resize control with customAppoptions