Seed Bible extension API (v1.18.0) / seed-bible/extensions / SandboxToolOptions
Interface: SandboxToolOptions
A button registered with one of the sb.tools.register… methods.
Properties
icon
icon: SandboxIcon;A Material Symbols name ({ material: "palette" }) or an inline SVG.
id
id: string;Unique within this extension: letters, digits, _, . or -, up to 64. Registering again with the same id replaces the tool.
isDisabled?
isDisabled?: ToolFlag;A signal keeps the host up to date as it changes.
isVisible?
isVisible?: ToolFlag;A signal keeps the host up to date as it changes. Defaults to visible.
items?
items?: SandboxToolItemOptions[];A submenu of 1–20 entries, instead of onSelect.
onSelect?
onSelect?: (context: SandboxToolSelectContext) => void | Promise<void>;Called when the user selects the tool. Counts as a user interaction, so it may open dialogs, copy, play audio or ask for permissions. Errors it throws are logged, not shown. Mutually exclusive with items.
Parameters
| Parameter | Type |
|---|---|
context | SandboxToolSelectContext |
Returns
void | Promise<void>
priority?
priority?: number;Lower comes first; defaults to 500. Clamped by the host to 200–999, so it always comes after the app's own tools.
title
title: SandboxTitle;The button's label or tooltip.