Handbook · Reference · Blockly

Blockly toolbox

Where in the UI. Scripts tab. Categories in the Blockly toolbox flyout.

How-to lives on Scripts. This index is the map. Stock Logic/Math/Text/Lists/Variables/Functions are Blockly’s. Everything else calls a host method (see host methods) and needs a capability.

User-visible strings in scripts should use ContaindText (containd_text), not stock text, so translations can fill keys.

CategoryPurposeBlocks
LogicStock Blockly: if, compare, and/or, booleans, ternary.7
LoopsRepeat, while, for, for-each, plus item-ref list length helpers.7
MathStock math plus Containd rounding, hex color ints, and random lists.15
TextStock string ops plus ContaindText and rich-text link formatters.16
ListsStock lists plus Containd concat/append (interpreter-safe).14
DialogsAlerts, toasts, confirms, pickers, SVG dialogs.7
Containd text helpersSplit/join/sanitize and encoded selects.8
NavigationNavigate, open link/website/deep link/search.5
TreeWalk the item tree: roots, parent, children, placeholders, ids.18
LayoutsResolve layouts/elements, enable layouts, enum option helpers.30
DataRead/write item fields, categories, variables, local state, style patches.49
TableCTBL / file-table rows, CSV, columns.26
ClassClass variables, membership, list/run class scripts and API.21
RelativesRead/write parent, child, sibling fields and properties.10
Date and timeClock, duration, format, weekday helpers, datetime writes.14
UnitsConvert quantities and list unit catalogs.3
StatisticsPlots, series, summaries, regression, FFT helpers.59
DeviceClipboard and barcode scanner.3
CanvasQuery, move, align, animate items; schedules; canvas level.15
GraphItem graph edges, wire style, peer ids.21
MediaImport images, QR, thumbnails, screenshots.6
FilesCSV, filenames, share, PDF document blocks, inventory report.17
ItemsCreate, retype, trash, apply mutations.16
AICredits and launch AI chat (capability-gated).2
SystemReminders, timers, display refresh, script log, evaluate expression.24
ActionsDispatch template actions / custom actions.3
Shared functionsCall shared functions and return values.4
AdvancedGeneric host call and graph mutation patches.3
Variables (stock)Blockly variable getters/setters for script-local names (not item variables).0
Functions (stock)Blockly procedures. Prefer Containd shared functions for reusable host-facing APIs.0

Source: app/lib/scripts/blocklyToolbox.ts.