Bundleware, Toolbar Script Reference

Last site update 29th October 2026

Toolbar Script Functions

This table lists the principal functions, hooks, parts and context members that toolbar scripts reach through the Bundleware global, the API versions each one applies to, and its status in the guide, Toolbar Scripts (API 2). API 1, retired on 19th October 2026, was for build-time modules that imported defineToolbar from ~/api; names marked removed were in drafts of API 2 but not in its release.

FunctionApplicable VersionsDocumentation Status
ActionAPI 2 and higherDocumented
Action.OpenInBrowserAPI 2 and higherDocumented
Action.OpenWindowAPI 2 and higherDocumented
Action.ShowPopupAPI 2 and higherDocumented
context.actionAPI 1 to API 2 previewsRemoved
context.activityAPI 1 and higherDocumented
context.aiAPI 1 to API 2 previewsRemoved
context.aiSiteAPI 2 and higherDocumented
context.effectAPI 2 previewsRemoved
context.generateAPI 1 and higherDocumented
context.idAPI 1 and higherDocumented
context.intervalAPI 1 and higherDocumented
context.levelsAPI 2 and higherDocumented
context.listenAPI 1 and higherDocumented
context.modelAPI 1 to API 2 previewsRemoved
context.onCleanupAPI 1 and higherDocumented
context.openAiSetupAPI 2 previewsRemoved
context.openLocalAiSetupAPI 2 and higherDocumented
context.openPopupAPI 1 to API 2 previewsRemoved
context.openWindowAPI 1 and higherDocumented
context.pageAPI 1 and higherDocumented
context.selectionAPI 1 to API 2 previewsRemoved
context.showPopupAPI 2 and higherDocumented
context.signalAPI 1 and higherDocumented
context.soundAPI 2 and higherDocumented
context.speechAPI 2 and higherDocumented
context.stateAPI 2 previewsRemoved
context.timeoutAPI 1 and higherDocumented
context.viewAPI 2 previewsRemoved
createSpeechControllerAPI 2 previewsRemoved
defineToolbarAPI 2 and higherDocumented
defineToolbar (~/api)API 1 onlyRetired
FragmentAPI 2 and higherDeclared
hAPI 2 and higherDeclared
htmlAPI 2 previewsRemoved
IconAPI 2 and higherDocumented
iconsAPI 2 and higherDocumented
liveAPI 2 previewsRemoved
musicAPI 2 and higherDocumented
music.hzAPI 2 and higherDocumented
music.melodyAPI 2 and higherDocumented
music.readMidiAPI 2 and higherDocumented
nothingAPI 2 previewsRemoved
page.readSelectionAPI 1 to API 2 previewsRemoved
page.readTextAPI 1 to API 2 previewsRemoved
ReadoutAPI 2 and higherDocumented
storeAPI 2 and higherDocumented
ToolbarAPI 2 and higherDocumented
Toolbar.ButtonAPI 2 and higherDocumented
Toolbar.MenuAPI 2 and higherDocumented
Toolbar.Menu.ItemAPI 2 and higherDocumented
Toolbar.Menu.SectionAPI 2 and higherDocumented
Toolbar.ModuleAPI 2 and higherDocumented
Toolbar.RightAPI 2 and higherDocumented
Toolbar.SearchAPI 2 and higherDocumented
Toolbar.Search.SuggestionAPI 2 and higherDocumented
Toolbar.SeparatorAPI 2 and higherDocumented
Toolbar.SplitButtonAPI 2 and higherDocumented
Toolbar.StatusAPI 2 and higherDocumented
Toolbar.StripAPI 2 and higherDocumented
Toolbar.TextAPI 2 and higherDocumented
Toolbar.WidgetAPI 2 and higherDocumented
unsafeSVGAPI 2 previewsRemoved
useActionAPI 2 previewsRemoved
useActivityAPI 2 and higherDocumented
useAiSiteAPI 2 and higherDocumented
useCallbackAPI 2 and higherDocumented
useEffectAPI 2 and higherDocumented
useGenerateAPI 2 and higherDocumented
useLayoutEffectAPI 2 and higherDocumented
useLevelsAPI 2 and higherDocumented
useMemoAPI 2 and higherDocumented
useModelAPI 2 previewsRemoved
usePageAPI 2 and higherDocumented
useReducerAPI 2 and higherDocumented
useRefAPI 2 and higherDocumented
useRootAPI 2 and higherDocumented
useSoundAPI 2 and higherDocumented
useSpeechAPI 2 and higherDocumented
useStateAPI 2 and higherDocumented
useStoreAPI 2 and higherDocumented
useToolbarAPI 2 and higherDocumented

Declared: public/bundleware.d.ts declares the name and the guide does not describe it. Expand Hooks, Components or Context in the tree for every name of each kind.

Limits

Every toolbar script works within three limits. A script that exceeds one fails with an error at the point shown.

LimitValueChecked
Page textUp to 12,000 characters per readpage.read, page.subscribe and usePage: maxLength is 0 to 12,000, default 4,000. Other values throw a RangeError.
WidgetsAt most 128 per toolbarWhen the toolbar is defined: “use at most 128 widgets”.
SourceUp to 256 KiB per scriptWhen a script is saved, imported, fetched or generated.