Handbook · Reference · Blockly · Block index

Blockly block index

Where in the UI. Scripts tab toolbox. Use the filter on this page or your browser’s find-in-page.

426 blocks from the editor toolbox at build time. Type in the filter to narrow by block id, toolbox category, readable label, or purpose. Each row links to the category page for context.

Stock Variables and Functions flyouts have no fixed block ids — Blockly generates those from names on your workspace. See Variables (stock) and Functions (stock).

426 blocks

Block idToolboxRead asPurpose
containd_add_duration_to_isoDate and timeadd duration to isocallHost(addDurationToIso)
containd_align_canvas_itemsCanvasalign canvas itemsEdge-align items from an item-ref list (e.g. child item refs). Not the Sort/Align modal — use “align all children” for column/row/snap.
containd_align_layout_all_canvas_itemsCanvasalign layout all canvas itemsAlign tab: column/row pack or snap-to-grid for every child. Snap size appears only for snap-to-grid. Not edge-align.
containd_align_layout_canvas_itemsCanvasalign layout canvas itemsAlign tab for a subset. Plug an item-ref list; leave empty = all children. Snap size only for snap-to-grid.
containd_animate_itemsCanvasanimate itemscallHost(animateItems)
containd_animate_items_toCanvasanimate items tocallHost(animateItems) with runtime target coordinates
containd_append_table_rowTableappend table rowvalues list order must match table columns; host coerces types
containd_apply_element_defaults_on_bound_itemItemsapply element defaults on bound itemitem fields, categories, or both
containd_apply_element_defaults_on_itemItemsapply element defaults on itemcallHost(applyElementDefaults) with itemId — requires write.relatives when not bound item
containd_apply_mutationsItemsapply mutationsJSON array of mutation records
containd_apply_svg_shape_settings_patchDataapply svg shape settings patchMerge patch into svgShapeSettings on bound item (callHost getItemData/setItemData)
containd_apply_svg_shape_settings_patch_on_itemDataapply svg shape settings patch on itemMerge patch into svgShapeSettings on target item — requires write.relatives when not bound
containd_apply_title_style_patchDataapply title style patchMerge patch into defaultTitleStyle on bound item (callHost getItemData/setItemData)
containd_apply_title_style_patch_on_itemDataapply title style patch on itemMerge patch into defaultTitleStyle on target item — requires write.relatives when not bound
containd_apply_web_share_policies_patchDataapply web share policies patchMerge patch into webSharePolicies on bound item (callHost getItemData/setItemData)
containd_apply_web_share_policies_patch_on_itemDataapply web share policies patch on itemMerge patch into webSharePolicies on target item — requires write.relatives when not bound
containd_apply_wire_style_patchGraphapply wire style patchApply a wire-style patch to one wire (needs write.graph). Empty / all-unchanged patches are no-ops.
containd_bound_item_idTreebound item idNumeric id of the script bound item (onCreate / action handler context)
containd_call_host_advancedAdvancedcall host advancedGeneric callHost with JSON args object
containd_call_shared_functionShared functionscall shared functionCall a project-wide shared Blockly function
containd_cancel_animationCanvascancel animationcallHost(cancelAnimation)
containd_cancel_reminderSystemcancel reminderCancels the OS notification and deletes the reminder by reminderId.
containd_cancel_scheduleCanvascancel schedulecallHost(cancelSchedule)
containd_category_property_has_valueDatacategory property has valueTrue when the bound item resolves a value (stored or static default) for the property
containd_category_property_has_value_on_itemDatacategory property has value on itemTrue when the given item resolves a value for the property — item socket accepts numeric id or ItemRef
containd_change_canvas_levelCanvaschange canvas levelcallHost(changeCanvasLevel)
containd_class_idClassclass idProject class id — every class in the project, including those not attached to this template. Plug into item has class, or replace with a text block to type any id.
containd_class_variable_existsClassclass variable existsTrue when the class-authored key is stored on the active item.
containd_class_variable_exists_on_itemClassclass variable exists on itemTrue when the class-authored key is stored on the given item.
containd_clear_tableTableclear tableremove all rows; column schema unchanged
containd_compare_isoDate and timecompare isocallHost(compareIso)
containd_compute_plot_from_listsStatisticscompute plot from listsbuild a plot result object (pass to “show plot result”).
containd_compute_plot_from_lists_multiStatisticscompute plot from lists multimulti-trace result object (pass to “show plot result”).
containd_connect_itemsGraphconnect itemsCreate a graph wire from source to target (needs write.graph). Bound item must be source or target. Use 0 for bound item id. Fires onGraphChange. For wire appearance, use wires-of-item + set wire blocks.
containd_convert_quantityUnitsconvert quantityreturns converted numeric value (unit/converted via advanced callHost)
containd_create_canvas_screenshotMediacreate canvas screenshotTBD, host not implemented
containd_create_child_itemItemscreate child itemcallHost(createChildItem) → itemId
containd_create_child_on_bound_itemItemscreate child on bound itemcallHost(createChildItem) on bound item → itemId
containd_create_child_on_bound_item_by_idItemscreate child on bound item by idcallHost(createChildItem) on bound item with explicit template/element ids → itemId
containd_create_child_under_itemItemscreate child under itemcallHost(createChildItem) with parentId → itemId
containd_create_child_under_item_by_idItemscreate child under item by idcallHost(createChildItem) with parentId and explicit template/element ids → itemId
containd_create_datetime_from_partsDate and timecreate datetime from partsmonth 1–12; hour/minute/second default 0; returns ISO
containd_create_empty_table_rowTablecreate empty table rowlist of nulls matching column count (fill then append/set)
containd_create_empty_table_row_on_itemTablecreate empty table row on itemcallHost(createEmptyTableRow) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_create_itemItemscreate itemcallHost(createItem) → itemId
containd_create_item_extendedItemscreate item extendedcreate item extended source … template … element … title … parent … interactive … AI … language … defer lifecycle … onCreated script … onAiComplete script … prompt context … defaults JSON … media uris JSON … category ids JSON …
containd_create_item_extended_jsonItemscreate item extended jsoncallHost(createItemExtended) with full JSON request → itemId
containd_create_qr_codeMediacreate qr codeTBD, host not implemented
containd_create_root_listItemscreate root listcallHost(createItem) with parentId null → itemId
containd_create_root_list_by_idItemscreate root list by idcallHost(createItem) with parentId null and explicit template/element ids → itemId
containd_data_series_source_idStatisticsdata series source idRead .sourceId (string) from a listAvailableDataSources descriptor.
containd_data_series_x_listStatisticsdata series x listExtract X array from a “data series for source id” result.
containd_data_series_y_listStatisticsdata series y listExtract Y array from a “data series for source id” result.
containd_data_source_labelStatisticsdata source labelRead .label (string) — human display name for listView / plot title.
containd_data_source_propStatisticsdata source propRead one field from a listAvailableDataSources descriptor (DEC-076).
containd_delete_class_variableClassdelete class variableclass-authored key dropdown
containd_delete_class_variable_on_itemClassdelete class variable on itemcallHost(deleteItemVariable) with itemId — class-authored key dropdown
containd_delete_item_variableDatadelete item variableremoves key from itemVariablesJson
containd_delete_item_variable_on_itemDatadelete item variable on itemcallHost(deleteItemVariable) with itemId
containd_delete_local_stateDatadelete local statecallHost(deleteLocalState)
containd_diff_iso_daysDate and timediff iso dayscallHost(diffIsoDays)
containd_disconnect_itemsGraphdisconnect itemsRemove a graph wire between source and target (needs write.graph). Bound item must be source or target. Use 0 for bound item id. Fires onGraphChange. No-op when the edge is missing.
containd_dispatch_actionActionsdispatch actionrequires scripts.invoke
containd_encoded_select_buildContaind text helpersencoded select buildBuild encoded stringSelect value: selected;option1;option2;...
containd_encoded_select_optionsContaind text helpersencoded select optionsRead option list (indices 1..n) from encoded stringSelect value
containd_encoded_select_selectedContaind text helpersencoded select selectedRead selected value (index 0) from encoded stringSelect value
containd_ensure_internal_product_codeTreeensure internal product codefill internalProductCode if empty (same as label create); no-op if already set; use 0 for bound item
containd_enum_index_to_valueLayoutsenum index to valuecallHost(listEnumOptions) then map 0-based index → option id (empty if out of range).
containd_enum_option_fieldLayoutsenum option fieldRead one field from a listEnumOptions option object.
containd_enum_option_idLayoutsenum option idStable enum option id string for the selected category enum property
containd_enum_value_to_indexLayoutsenum value to indexcallHost(listEnumOptions) then map option id → 0-based index (−1 if not found).
containd_evaluate_expressionSystemevaluate expressionrequires scripts.invoke
containd_export_inventory_reportFilesexport inventory reportcallHost(exportInventoryReport)
containd_extract_table_columnTableextract table columnflat row-ordered values list (timestamp cells are epoch ms)
containd_extract_table_column_on_itemTableextract table column on itemcallHost(extractTableColumn) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_format_isoDate and timeformat isocallHost(formatIso)
containd_format_item_linkTextformat item linkBuild [[item:id|label]] rich text markup
containd_format_mailto_linkTextformat mailto linkBuild [[mailto:…]] rich text markup
containd_format_tel_linkTextformat tel linkBuild [[tel:…|label]] rich text markup
containd_format_url_linkTextformat url linkBuild [[url:…|label]] rich text markup
containd_get_ai_creditsAIget ai creditscallHost(getAiCredits)
containd_get_current_weekday_indexDate and timeget current weekday index0=Sun … 6=Sat
containd_get_current_weekday_nameDate and timeget current weekday nameEng short Sun…Sat
containd_get_data_seriesStatisticsget data seriescallHost(getDataSeries) → { xList, yList, label, … } for one catalog sourceId.
containd_get_data_sourceStatisticsget data sourcecallHost(getDataSource) → catalog descriptor for one sourceId (DEC-076).
containd_get_datetimeDate and timeget datetimecallHost(getCurrentDateTime)
containd_get_datetime_partDate and timeget datetime partmonth is 1–12; timezone local|utc
containd_get_element_display_nameLayoutsget element display nameomit element id to use the current element; app locale
containd_get_element_display_name_on_itemLayoutsget element display name on itemcallHost(getElementDisplayName) with itemId
containd_get_item_element_idLayoutsget item element idcurrent item templateElementId
containd_get_item_element_id_on_itemLayoutsget item element id on itemcallHost(getItemElementId) with itemId — requires read.relatives when not bound item
containd_get_item_ref_by_uuidTreeget item ref by uuidcallHost(getItemRefByUuid) → item id for collectionShareId UUID (0 when not found)
containd_get_item_uuidTreeget item uuidcollectionShareId for the item (mints if missing); use 0 for bound item
containd_get_last_weekday_beforeDate and timeget last weekday beforeon-or-before (passthrough if same day); preserves clock time; returns ISO
containd_get_layout_display_nameLayoutsget layout display nameomit layout id to use the live layout; app locale
containd_get_layout_display_name_on_itemLayoutsget layout display name on itemcallHost(getLayoutDisplayName) with itemId
containd_get_next_weekday_afterDate and timeget next weekday afteron-or-after (passthrough if same day); preserves clock time; returns ISO
containd_get_original_item_refTreeget original item refcallHost(getOriginalItemRef) → original item id for a placeholder (0 if not a placeholder / missing); use 0 for bound item
containd_get_parent_item_refTreeget parent item refcallHost(getParentItemRef) → parent item id (0 if none); use 0 for bound item
containd_get_reminderSystemget reminderLoads ReminderView for an id. Plug into “reminder … property” to read title, wasFired, etc.
containd_get_reminder_id_for_timerSystemget reminder id for timerLooks up the OS reminder linked when the countdown was started with create reminder = true.
containd_get_root_item_refTreeget root item refcallHost(getRootItemRef) → item id (0 if missing); use 0 for the bound item
containd_get_table_column_typesTableget table column typestype strings (string/int/double/timestamp/color)
containd_get_table_column_types_on_itemTableget table column types on itemcallHost(getTableMeta) column types with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_get_table_columnsTableget table columnsreturns column id strings in schema order
containd_get_table_columns_on_itemTableget table columns on itemcallHost(getTableMeta) column ids with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_get_table_headersTableget table headerslocalized header labels in column order
containd_get_table_headers_on_itemTableget table headers on itemcallHost(getTableMeta) headers with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_get_table_meta_max_rowsTableget table meta max rowscallHost(getTableMeta).value.maxRows
containd_get_table_meta_max_rows_on_itemTableget table meta max rows on itemcallHost(getTableMeta).value.maxRows with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_get_table_rowTableget table rowone row as a list at 0-based index
containd_get_table_row_countTableget table row countcallHost(getTableRowCount).value.rowCount
containd_get_table_row_count_on_itemTableget table row count on itemcallHost(getTableRowCount) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_get_table_row_on_itemTableget table row on itemcallHost(getTableRow) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_get_table_rowsTableget table rows2D list of all rows (column order)
containd_get_table_rows_on_itemTableget table rows on itemcallHost(getTableRows) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_get_timerSystemget timerLoads one timer’s live state (TimerView object).
containd_get_timer_id_for_reminderSystemget timer id for reminderReverse link: which timer created this reminder (if any).
containd_hex_color_to_intMathhex color to intPack #RRGGBB / #RRGGBBAA (alpha last) to unsigned 32-bit 0xRRGGBBAA.
containd_import_imageMediaimport imagecallHost(importImageToItem) on bound item — gallery or camera; returns imageUri (null if cancelled)
containd_import_image_on_itemMediaimport image on itemcallHost(importImageToItem) with itemId — gallery or camera; returns imageUri (null if cancelled)
containd_int_to_hex_colorMathint to hex colorUnpack unsigned 32-bit 0xRRGGBBAA to #RRGGBB (opaque) or #RRGGBBAA.
containd_is_layout_enabledLayoutsis layout enabledtrue when allowLayoutEnableDisable is off or the mask bit is 1; reserved variable _layoutEnabled
containd_is_layout_enabled_by_idLayoutsis layout enabled by idcallHost(isLayoutEnabled) by layout id
containd_is_layout_enabled_by_id_on_itemLayoutsis layout enabled by id on itemcallHost(isLayoutEnabled) by id with itemId
containd_is_layout_enabled_on_itemLayoutsis layout enabled on itemcallHost(isLayoutEnabled) with itemId — requires read.relatives when not bound item
containd_item_existsTreeitem existstrue when the item row exists; use 0 for bound item
containd_item_has_categoryDataitem has categoryTrue when categories[] on the bound item includes the category id
containd_item_has_category_on_itemDataitem has category on itemTrue when categories[] on the given item includes the category id — item socket accepts numeric id or ItemRef (e.g. parent_ref)
containd_item_has_classClassitem has classtrue when the bound item element has the class attached or via inheritance. Plug a class picker or type any class id string. Membership is resolved on the target item’s template.
containd_item_has_class_on_itemClassitem has class on itemcallHost(itemHasClass) with itemId — use 0 for bound item; requires read.relatives for other items. Plug a class picker or type any class id string.
containd_item_has_elementLayoutsitem has elementtrue when the bound item uses this element id
containd_item_has_element_on_itemLayoutsitem has element on itemcallHost(itemHasElement) with itemId — requires read.relatives when not bound item
containd_item_has_timerSystemitem has timerQuick check for timers on the item running this script.
containd_item_has_timer_on_itemSystemitem has timer on itemSame as “this item has timer”, for another item.
containd_item_id_at_index_in_ref_listLoopsitem id at index in ref listRead one id from a tree/graph item id list (also accepts legacy ItemRef[]). Plug into ContaindData “… on item”.
containd_item_id_at_index_in_ref_listTreeitem id at index in ref listRead one id from a tree/graph item id list (also accepts legacy ItemRef[]). Plug into ContaindData “… on item”.
containd_item_id_from_item_refTreeitem id from item refUsually unnecessary — tree/graph lists already return numbers. Compat: coerces a legacy ItemRef or bare number via __resolveItemId.
containd_item_is_placeholderTreeitem is placeholdertrue when originalId > 0; use 0 for bound item
containd_item_is_rootTreeitem is rootTrue when the item has no parent; use 0 for the bound item
containd_item_ref_list_last_indexLoopsitem ref list last indexLast valid index (length − 1) for controls_for: from 0, to this value, by 1. Returns 0 when list is empty.
containd_item_ref_list_last_indexTreeitem ref list last indexLast valid index (length − 1) for controls_for: from 0, to this value, by 1. Returns 0 when list is empty.
containd_item_ref_list_lengthLoopsitem ref list lengthArray length for child/sibling/graph/placeholder/root item id lists
containd_item_ref_list_lengthTreeitem ref list lengthArray length for child/sibling/graph/placeholder/root item id lists
containd_item_variable_existsDataitem variable existsTrue when the key is stored on the active item (getItemVariable type is set).
containd_item_variable_exists_on_itemDataitem variable exists on itemTrue when the key is stored on the given item.
containd_join_stringsContaind text helpersjoin stringsJoin a list of strings with a delimiter. Type \ / \\r / \\t in a text block for real newline/CR/tab (same unescape as split).
containd_lap_stopwatchSystemlap stopwatchRecords a lap on a running stopwatch (no-op / error on countdowns).
containd_launch_ai_chatAIlaunch ai chatTBD, host not implemented
containd_list_asortStatisticslist asortcallHost(listAsort) → [sortedValues[], indices[]]
containd_list_available_data_sourcesStatisticslist available data sourcescallHost(listAvailableDataSources) → array of catalog descriptors (DEC-076).
containd_list_child_item_refsTreelist child item refscallHost(listChildItemRefs) → number[] of direct child ids; use 0 for bound item
containd_list_convertible_unitsUnitslist convertible unitsreturns same-dimension unit ids excluding the input (empty if unknown)
containd_list_convolveStatisticslist convolveFIR folding; same (default) or full
containd_list_correlate_seriesStatisticslist correlate series[r, p, xFirst, xLast, n] or empty list if insufficient data
containd_list_correlationStatisticslist correlation{ r, p, n } Pearson correlation
containd_list_correlation_pStatisticslist correlation ptwo-tailed p-value
containd_list_correlation_rStatisticslist correlation rPearson r coefficient
containd_list_cross_correlationStatisticslist cross correlationcorrelation values list (-maxLag…+maxLag); leave max lag empty for full range
containd_list_cross_correlation_lagsStatisticslist cross correlation lagslag index list matching the values list
containd_list_cumulative_sumStatisticslist cumulative sumrunning sum (non-finite → NaN gap)
containd_list_dftStatisticslist dft[magnitude[], phaseRadians[]]
containd_list_element_layout_idsLayoutslist element layout idscyclable layout ids; omit element id to use the current element
containd_list_element_layout_ids_on_itemLayoutslist element layout ids on itemcallHost(listElementLayoutIds) with itemId — omit element id for current element
containd_list_enum_option_idsLayoutslist enum option idscallHost(listEnumOptions) → string[] of option ids in definition order.
containd_list_enum_optionsLayoutslist enum optionscallHost(listEnumOptions) → array of { id, displayName, color?, icon? }.
containd_list_fftStatisticslist fftzero-pad to power of 2 → [magnitude[], phaseRadians[]]
containd_list_five_number_summaryStatisticslist five number summary[min, Q1, median, Q3, max]
containd_list_graph_edgesGraphlist graph edgesList graph wires for styling (not neighbor id lists), including wires owned by placeholder seats. Use 0 for the bound item. Loop with wire at index → set color / peer item id. For ContaindData on neighbors, prefer outgoing/incoming graph item ids instead.
containd_list_idftStatisticslist idftspectrum [mag[], phase[]] → real time series
containd_list_ifftStatisticslist ifftpower-of-2 spectrum [mag[], phase[]] → real time series
containd_list_incoming_item_refsGraphlist incoming item refsnumber[] of original items that wire INTO this item or any of its placeholders (needs read.graph). Use 0 for bound item. Originals only (placeholder seats resolve to originals).
containd_list_interpolateStatisticslist interpolateresample y1 onto x2 → y2; empty list if cannot interpolate
containd_list_item_classesClasslist item classeseffective Template Class ids for the bound item (attached + ancestors)
containd_list_item_classes_on_itemClasslist item classes on itemuse 0 for bound item; requires read.relatives for other items
containd_list_item_properties_by_typeDatalist item properties by typecallHost(listItemPropertiesByType) on the bound item (DEC-076).
containd_list_item_properties_by_type_on_itemDatalist item properties by type on itemcallHost(listItemPropertiesByType) for another item (needs read.relatives).
containd_list_item_remindersSystemlist item remindersList of reminderId strings for the current item.
containd_list_item_reminders_on_itemSystemlist item reminders on itemList of reminderId strings for that item. Returns [] when none. Requires notifications.read.
containd_list_item_scriptsClasslist item scriptsscript ids exposed via trigger-api on this item
containd_list_item_scripts_by_prefixClasslist item scripts by prefixmatches script.id prefix on this item
containd_list_item_scripts_by_prefix_on_itemClasslist item scripts by prefix on itemuse 0 for bound item
containd_list_item_scripts_on_itemClasslist item scripts on itemuse 0 for bound item; requires read.relatives for other items
containd_list_item_timersSystemlist item timersAll timers on the item running this script.
containd_list_item_timers_on_itemSystemlist item timers on itemAll timers on another item.
containd_list_linear_regressionStatisticslist linear regression{ slope, intercept, r2, r, p, n }
containd_list_linear_regression_interceptStatisticslist linear regression intercept.intercept
containd_list_linear_regression_pStatisticslist linear regression p.p
containd_list_linear_regression_rStatisticslist linear regression r.r
containd_list_linear_regression_r2Statisticslist linear regression r2.r2
containd_list_linear_regression_slopeStatisticslist linear regression slope.slope
containd_list_maxStatisticslist maxcallHost(listMax) → [value, index]
containd_list_meanStatisticslist meanmean of finite numeric list values
containd_list_medianStatisticslist medianmedian of finite numeric list values
containd_list_minStatisticslist mincallHost(listMin) → [value, index]
containd_list_moving_averageStatisticslist moving averageforward or filtfilt bidirectional
containd_list_outgoing_item_refsGraphlist outgoing item refsnumber[] of original items this item wires TO, including edges stored on any of its placeholders (needs read.graph). Use 0 for bound item. Loop and plug ids into ContaindData “… on item”. Prefer this over wires-of-item when you need data, not style.
containd_list_overlap_rangeStatisticslist overlap range[start, end] or empty list if no overlap
containd_list_placeholder_item_refsTreelist placeholder item refscallHost(listPlaceholderItemRefs) → number[] of placeholders for the canonical original; use 0 for bound item
containd_list_rangeStatisticslist range{ min, max } object
containd_list_reverseStatisticslist reverseshallow reverse of any list
containd_list_root_item_refsTreelist root item refscallHost(listRootItemRefs) → number[] of top-level location root ids
containd_list_sibling_item_refsTreelist sibling item refscallHost(listSiblingItemRefs) → number[] same parent excluding self; use 0 for bound item
containd_list_spectrum_magnitudeStatisticslist spectrum magnitudeIndex 0 of [magnitude[], phase[]] spectrum list
containd_list_spectrum_phaseStatisticslist spectrum phaseIndex 1 of [magnitude[], phase[]] spectrum list (radians)
containd_list_std_devStatisticslist std devsample standard deviation
containd_list_sumStatisticslist sumsum of finite numeric list values
containd_list_t_testStatisticslist t testindependent two-sample Student t { t, p, df, n1, n2 }
containd_list_t_test_one_sampleStatisticslist t test one sampleone-sample Student t { t, p, df, n }
containd_list_t_test_pairedStatisticslist t test pairedpaired Student t { t, p, df, n }
containd_list_template_element_idsLayoutslist template element idselement ids on the item template (definition order)
containd_list_template_element_ids_on_itemLayoutslist template element ids on itemcallHost(listTemplateElementIds) with itemId — requires read.relatives when not bound item
containd_list_to_csvFileslist to csv1D list → single column; 2D list → rows. Optional headers list becomes the first CSV line.
containd_list_transposeStatisticslist transposerows→columns; ragged pads null; scalars = 1-cell rows
containd_list_uniqueStatisticslist uniquecallHost(listUnique) → [uniqueValues[], indices[]]
containd_list_unitsUnitslist unitsreturns array of unit catalog entries
containd_list_values_indices_indicesStatisticslist values indices indicesIndex 1 of an asort/unique result [values[], indices[]] — original 0-based positions.
containd_list_values_indices_valuesStatisticslist values indices valuesIndex 0 of an asort/unique result [values[], indices[]].
containd_lists_appendListsappendAppend all items from the source list onto the target list in place
containd_lists_concatListsconcatJoin two lists into a new list (does not modify the inputs)
containd_local_state_existsDatalocal state existsTrue when the key is present in the ephemeral session bag (getLocalState.found).
containd_log_scriptSystemlog scriptcallHost(logScript)
containd_move_canvas_itemsCanvasmove canvas itemscallHost(moveCanvasItems)
containd_move_item_to_trashItemsmove item to trashsilent delete to trash by default; requires write.item
containd_multiline_line_atContaind text helpersmultiline line atSplit multiline text by newline and return one line (0-based index)
containd_mutate_graphAdvancedmutate graphAdvanced escape hatch: raw mutateGraph operations JSON. Prefer friendly wire blocks for styling.
containd_navigateNavigationnavigatecallHost(navigate)
containd_open_barcode_scannerDeviceopen barcode scannercallHost(openBarcodeScanner) → code
containd_open_deep_linkNavigationopen deep linkcallHost(openDeepLink)
containd_open_linkNavigationopen linkcallHost(openLink)
containd_open_searchNavigationopen searchcallHost(openSearch)
containd_open_statisticsStatisticsopen statisticsbasic mode
containd_open_statistics_category_propertyStatisticsopen statistics category propertycategory-property mode
containd_open_statistics_item_fieldStatisticsopen statistics item fielditem-field mode
containd_open_websiteNavigationopen websitecallHost(openWebsite)
containd_parent_category_property_has_valueRelativesparent category property has valueTrue when the parent item resolves a value (stored or static default) for the property
containd_parent_has_categoryRelativesparent has categoryTrue when the bound item parent has the category id in categories[]
containd_patch_graph_edgeAdvancedpatch graph edgeAdvanced escape hatch: patch one edge by source id + index with style JSON. Prefer set wire color / thickness / apply style patch.
containd_pause_timerSystempause timerPauses a running countdown or stopwatch (chip/modal stay; time freezes).
containd_pdf_blocks_listFilespdf blocks listList of PDF content blocks
containd_pdf_documentFilespdf documentPdfDocumentDefinition for savePdf
containd_pdf_imageFilespdf imagePDF image block (tempPath only; assetId not resolved at runtime)
containd_pdf_pageFilespdf pageSingle PDF page with content blocks
containd_pdf_pages_listFilespdf pages listList of PDF pages
containd_pdf_qrFilespdf qrPDF QR code block
containd_pdf_spacerFilespdf spacerPDF vertical spacer block
containd_pdf_textFilespdf textPDF text block
containd_plot_series_itemStatisticsplot series itemBuild one trace for multi-series plot blocks (no host call).
containd_query_canvas_itemsCanvasquery canvas itemscallHost(queryCanvasItems)
containd_random_floatMathrandom floatSandbox Math.random — no host call
containd_random_float_listMathrandom float listSandbox Math.random — array of n decimals (no host call)
containd_random_int_listMathrandom int listSandbox Math.random — array of n inclusive ints (no host call)
containd_read_category_propertyDataread category propertycallHost(getItemData) categoryProperty
containd_read_category_property_on_itemDataread category property on itemcallHost(getItemData) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_read_child_category_propertyRelativesread child category propertyCalls host method getChildData.
containd_read_child_item_fieldRelativesread child item fieldCalls host method getChildData.
containd_read_class_variableClassread class variablepick a class-authored variable key
containd_read_class_variable_on_itemClassread class variable on itemcallHost(getItemVariable) with itemId — class-authored key dropdown
containd_read_clipboardDeviceread clipboardcallHost(readClipboardText)
containd_read_item_fieldDataread item fieldcallHost(getItemData) itemField
containd_read_item_field_on_itemDataread item field on itemcallHost(getItemData) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_read_item_metricDataread item metriclazy-derived count or flag (imageCount, childCount, etc.)
containd_read_item_metric_on_itemDataread item metric on itemcallHost(getItemMetric) with itemId — requires read.relatives when not bound item
containd_read_item_variableDataread item variableKEY is any string expression
containd_read_item_variable_on_itemDataread item variable on itemcallHost(getItemVariable) with itemId
containd_read_local_stateDataread local stateephemeral session bag (DEC-061)
containd_read_parent_category_propertyRelativesread parent category propertyCalls host method getParentData.
containd_read_parent_item_fieldRelativesread parent item fieldCalls host method getParentData.
containd_read_sibling_category_propertyRelativesread sibling category propertyCalls host method getSiblingData.
containd_read_sibling_item_fieldRelativesread sibling item fieldCalls host method getSiblingData.
containd_read_svg_shape_settings_propertyDataread svg shape settings propertyResolved svgShapeSettings property on bound item
containd_read_svg_shape_settings_property_on_itemDataread svg shape settings property on itemResolved svgShapeSettings property on target item
containd_read_title_style_propertyDataread title style propertyResolved defaultTitleStyle property on bound item (defaults applied)
containd_read_title_style_property_on_itemDataread title style property on itemResolved defaultTitleStyle property on target item
containd_read_web_share_policies_propertyDataread web share policies propertyResolved webSharePolicies property on bound item (defaults applied)
containd_read_web_share_policies_property_on_itemDataread web share policies property on itemResolved webSharePolicies property on target item
containd_recreate_svg_thumbnailMediarecreate svg thumbnailTBD, host not implemented
containd_reminder_propertySystemreminder propertyRead one field from a ReminderView (from “get reminder”).
containd_remove_table_rowTableremove table rowremove row at 0-based index and persist
containd_report_export_optionsFilesreport export optionsPartial ReportExportOptions for exportInventoryReport
containd_request_display_refreshSystemrequest display refreshcallHost(requestDisplayRefresh)
containd_resize_canvas_itemsCanvasresize canvas itemscallHost(resizeCanvasItems)
containd_resolve_layout_idLayoutsresolve layout idinverse of layout id for index; returns -1 when not found
containd_resolve_layout_id_on_itemLayoutsresolve layout id on itemcallHost(resolveLayoutId) with itemId — requires read.relatives when not bound item
containd_resolve_layout_indexLayoutsresolve layout indexomit index to use live layoutInUse; returns stable layout id
containd_resolve_layout_index_on_itemLayoutsresolve layout index on itemcallHost(resolveLayoutIndex) with itemId — requires read.relatives when not bound item
containd_resume_timerSystemresume timerContinues a paused countdown or stopwatch.
containd_returnShared functionsreturnReturn from a shared function body
containd_return_valueShared functionsreturn valueReturn a value from a shared function body
containd_round_max_digitsMathround max digitsRound to at most N significant digits (e.g. 37.658→37.7 at N=3). When |value| ≥ 10^N, Math.round only (keeps all integer digits). No host call.
containd_run_class_apiClassrun class apiclass Export script from dropdown
containd_run_class_api_on_itemClassrun class api on itemcallHost(runItemScript) with itemId — class Export from dropdown
containd_run_custom_actionActionsrun custom actionopen edit entry/form, navigate, dialogs, canvas (no canvas action node); requires scripts.invoke
containd_run_custom_action_on_itemActionsrun custom action on itemcallHost(dispatchBuiltin) with itemId — requires scripts.invoke
containd_run_item_scriptClassrun item scriptfalse when id is not exposed; requires scripts.invoke
containd_run_item_script_on_itemClassrun item script on itemuse 0 for bound item; requires scripts.invoke + read.relatives for others
containd_sanitize_filenameFilessanitize filenamesafe single-segment filename (illegal chars → _, accents stripped, default max 80). Optional extension (e.g. csv) and max length.
containd_save_pdfFilessave pdfcallHost(savePdf)
containd_save_string_to_fileFilessave string to filewrite UTF-8 text to a temp cache file and return its path. Share yes also needs share.invoke. Use with list/table to CSV for exports.
containd_schedule_onceCanvasschedule oncecallHost(scheduleOnce)
containd_schedule_reminderSystemschedule reminderCreates a reminder and returns reminderId (string). Store it to update or delete later.
containd_schedule_repeatingCanvasschedule repeatingcallHost(scheduleRepeating)
containd_set_datetime_partDate and timeset datetime partkeep other parts; month 1–12; returns ISO
containd_set_element_type_on_bound_itemItemsset element type on bound itemsame template; resets layout to 0
containd_set_element_type_on_itemItemsset element type on itemcallHost(setElementType) with itemId — requires write.relatives when not bound item
containd_set_layout_enabledLayoutsset layout enabledrequires element allowLayoutEnableDisable; refuses last enabled; remounts if current disabled
containd_set_layout_enabled_by_idLayoutsset layout enabled by idcallHost(setLayoutEnabled) by layout id
containd_set_layout_enabled_by_id_on_itemLayoutsset layout enabled by id on itemcallHost(setLayoutEnabled) by id with itemId
containd_set_layout_enabled_on_itemLayoutsset layout enabled on itemcallHost(setLayoutEnabled) with itemId — requires write.relatives when not bound item
containd_set_table_columnTableset table columnvalues list length must equal row count; host coerces types
containd_set_table_rowTableset table rowoverwrite row at 0-based index; same list shape as append
containd_set_table_rowsTableset table rowsreplace all rows from a 2D list (inverse of table rows); host coerces types
containd_set_wire_colorGraphset wire colorMerge color onto this wire (needs write.graph). Does not change the peer item — use for appearance only.
containd_set_wire_dashGraphset wire dashMerge dash pattern onto this wire (needs write.graph).
containd_set_wire_end_capGraphset wire end capMerge target-end cap onto this wire (needs write.graph).
containd_set_wire_start_capGraphset wire start capMerge source-end cap onto this wire (needs write.graph).
containd_set_wire_thicknessGraphset wire thicknessMerge stroke width onto this wire (needs write.graph).
containd_share_assetFilesshare assetopen the OS share sheet for any local file path/URI (from save string/PDF, screenshot, etc.). Requires share.invoke.
containd_shared_function_paramShared functionsshared function paramRead a parameter declared on this shared function (Setup tab)
containd_show_alertDialogsshow alertdismissible alert (no return)
containd_show_choiceDialogsshow choicecallHost(showChoice) → 'A' | 'B' | 'cancel'
containd_show_color_pickerDialogsshow color pickercallHost(showColorPicker) → color | null (cancel)
containd_show_confirmDialogsshow confirmcallHost(showConfirm) → true | false
containd_show_plot_from_listsStatisticsshow plot from listsopen fullscreen statistics chart from list data.
containd_show_plot_from_lists_multiStatisticsshow plot from lists multimulti-trace chart from list data.
containd_show_plot_resultStatisticsshow plot resultdisplay a result from “compute plot …” blocks.
containd_show_plot_table_columnStatisticsshow plot table columnplot one table column.
containd_show_plot_table_columns_xyStatisticsshow plot table columns xyXY plot from two table columns.
containd_show_svg_dialogDialogsshow svg dialogdispatchBuiltin(showSvgDialog) — catalog SVG; colors override item text/border when provided
containd_show_text_inputDialogsshow text inputcallHost(showTextInput) → text | null (cancel)
containd_show_toastDialogsshow toastnon-blocking toast (no return)
containd_show_xy_data_plotStatisticsshow xy data plotline chart from list data (simple XY helper).
containd_sort_all_canvas_itemsCanvassort all canvas itemsSort tab: reorder every child of the bound canvas into a balanced grid. Spacing uses canvas defaults. Width/height appear only for “use custom size”. Match-size plug appears only for “match selected item” (numeric id or ItemRef). Not grid indices.
containd_sort_canvas_itemsCanvassort canvas itemsSort a subset. Plug an item-ref list (e.g. child item refs); leave empty = all children. Ids are persistent item ids from ItemRefs — not post-sort grid indices.
containd_split_stringContaind text helperssplit stringSplit a string into a list by delimiter (e.g. ";" or newline)
containd_start_countdown_timerSystemstart countdown timerStarts a countdown on an item.
containd_start_stopwatchSystemstart stopwatchStarts a stopwatch on an item (counts up).
containd_stop_timerSystemstop timerStops and deletes the timer (UI closes). Also cancels a linked reminder if create reminder was used.
containd_string_at_indexContaind text helpersstring at indexSafe list index read (returns empty string when missing)
containd_strip_non_alphanumericContaind text helpersstrip non alphanumericKeep ASCII letters and digits only (A–Z, a–z, 0–9). Useful for ISO → RFC 6350 basic timestamps after dropping ms digits.
containd_svg_shape_settings_patchDatasvg shape settings patchPartial svgShapeSettings patch — unchanged fields are not written
containd_table_to_csvTabletable to csvCSV string for this table/fileTable property (pick property when item has multiple tables)
containd_table_to_csvFilestable to csvCSV string for this table/fileTable property (pick property when item has multiple tables)
containd_table_to_csv_on_itemTabletable to csv on itemcallHost(tableToCsv) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_table_to_csv_on_itemFilestable to csv on itemcallHost(tableToCsv) with itemId — accepts numeric id or ItemRef; requires read.relatives when not bound item
containd_textTextContaind text (localizable)Containd text: a localizable string from the template translations matrix.
containd_timer_propertySystemtimer propertyRead one field from a TimerView (from get timer or list/for-each).
containd_title_style_patchDatatitle style patchPartial defaultTitleStyle patch — unchanged fields are not written
containd_trigger_canvas_thumbnailMediatrigger canvas thumbnailTBD, host not implemented
containd_update_reminderSystemupdate reminderChange an existing reminder. “unchanged” leaves that field alone (no value plug).
containd_web_share_policies_patchDataweb share policies patchPartial webSharePolicies patch — unchanged fields are not written (public-share policies; openOnTap / openLinksInNewTab are web-only at runtime)
containd_wire_at_indexGraphwire at indexOpaque wire value from a wires list (null if missing). Feed into set wire … / peer item id / wire color blocks — not into ContaindData directly.
containd_wire_colorGraphwire colorCurrent wire color string; empty when unset. Pair with wire style is unset before first write.
containd_wire_dashGraphwire dashDash pattern (solid / dashed / dotted); empty when unset.
containd_wire_end_capGraphwire end capCap decoration at the target end; empty when unset.
containd_wire_goes_outGraphwire goes outTrue when the listed item is the source (outgoing) end of the wire; false when it is the target (incoming).
containd_wire_list_last_indexGraphwire list last indexLast valid index in a wires list (0 when empty). Plug into count-with “to” (from 0, by 1) then wire at index.
containd_wire_list_lengthGraphwire list lengthHow many wires are in a wires-of-item list. Prefer last wire index as the “to” value in a count-with loop (inclusive).
containd_wire_peer_item_idGraphwire peer item idNumeric id of the other end of this wire (0 if unknown). Plug into ContaindData “… on item” sockets, or use outgoing/incoming graph item ids for neighbor walks.
containd_wire_start_capGraphwire start capCap decoration at the source end; empty when unset.
containd_wire_style_is_unsetGraphwire style is unsetTrue when the wire has no style yet. Gate set-wire blocks on create so you style once without overwriting later user edits.
containd_wire_style_patchGraphwire style patchBuild a partial style patch. Leave fields “unchanged” to skip them. Apply with apply style patch to wire.
containd_wire_thicknessGraphwire thicknessCurrent stroke width; 0 when unset.
containd_write_category_propertyDatawrite category propertycallHost(setItemData)
containd_write_category_property_on_itemDatawrite category property on itemcallHost(setItemData) with itemId — requires write.relatives when not bound item
containd_write_class_variableClasswrite class variablepick a class-authored key; TYPE auto-fills from the Variables node
containd_write_class_variable_on_itemClasswrite class variable on itemcallHost(setItemVariable) with itemId — class-authored key dropdown
containd_write_clipboardDevicewrite clipboardcallHost(writeClipboardText)
containd_write_datetime_category_propertyDate and timewrite datetime category propertyISO 8601 datetime string
containd_write_datetime_item_fieldDate and timewrite datetime item fieldISO 8601 datetime string
containd_write_item_fieldDatawrite item fieldcallHost(setItemData)
containd_write_item_field_on_itemDatawrite item field on itemcallHost(setItemData) with itemId — accepts numeric id or ItemRef; requires write.relatives when not bound item
containd_write_item_variableDatawrite item variabletypes include itemRef and list (Blockly lists round-trip as JSON arrays)
containd_write_item_variable_on_itemDatawrite item variable on itemcallHost(setItemVariable) with itemId — accepts numeric id or ItemRef; type list stores a Blockly list
containd_write_local_stateDatawrite local statenot persisted to the item
containd_write_sibling_category_propertyRelativeswrite sibling category propertycallHost(setItemData) on each sibling up to limit — requires write.relatives
containd_write_sibling_item_fieldRelativeswrite sibling item fieldcallHost(setItemData) on each sibling up to limit — requires write.relatives
containd_write_svg_shape_settings_propertyDatawrite svg shape settings propertyWrite one svgShapeSettings property on bound item — boolean
containd_write_svg_shape_settings_property_on_itemDatawrite svg shape settings property on itemWrite one svgShapeSettings property on target item — boolean
containd_write_title_style_propertyDatawrite title style propertyWrite one defaultTitleStyle property on bound item — type depends on the selected field
containd_write_title_style_property_on_itemDatawrite title style property on itemWrite one defaultTitleStyle property on target item — type depends on the selected field
containd_write_web_share_policies_propertyDatawrite web share policies propertyWrite one webSharePolicies property on bound item — boolean (public-share web only)
containd_write_web_share_policies_property_on_itemDatawrite web share policies property on itemWrite one webSharePolicies property on target item — boolean (public-share web only)
controls_forLoopsforCount from A to B by step.
controls_forEachLoopsforEachFor each item in a list.
controls_ifLogicifIf / else control flow.
controls_repeat_extLoopsrepeat extRepeat n times.
controls_whileUntilLoopswhileUntilWhile / until loop.
lists_create_emptyListscreate emptyEmpty list.
lists_create_withListscreate withCreate a list from items.
lists_getIndexListsgetIndexGet an item from a list.
lists_getSublistListsgetSublistSlice of a list.
lists_indexOfListsindexOfFind an item in a list.
lists_isEmptyListsisEmptyWhether a list is empty.
lists_lengthListslengthLength of a list.
lists_repeatListsrepeatList of one value repeated n times.
lists_reverseListsreverseReverse a list.
lists_setIndexListssetIndexSet or insert an item in a list.
lists_sortListssortSort a list.
lists_splitListssplitSplit text to list, or join list to text.
logic_booleanLogicbooleanTrue or false literal.
logic_compareLogiccompareCompare two values (=, ≠, <, >, ≤, ≥).
logic_negateLogicnegateBoolean not.
logic_nullLogicnullNull literal.
logic_operationLogicoperationAnd / or of two booleans.
logic_ternaryLogicternaryInline if: test ? then : else.
math_arithmeticMatharithmeticAdd, subtract, multiply, divide, power.
math_constantMathconstantπ, e, golden ratio, sqrt(2), sqrt(½), ∞.
math_constrainMathconstrainClamp a number between bounds.
math_moduloMathmoduloRemainder of division.
math_numberMathnumberNumber literal.
math_random_intMathrandom intRandom integer in a range.
math_roundMathroundRound, round up, round down.
math_singleMathsingleSqrt, abs, negate, ln, log10, exp, trig inverses as listed on the block.
math_trigMathtrigSin, cos, tan, and inverses.
textTextStock text (not translated)Stock string literal. Not translated. Prefer Containd text for user-visible copy.
text_changeCaseTextchangeCaseUpper, lower, or title case.
text_charAtTextcharAtCharacter at a position.
text_getSubstringTextgetSubstringSlice of a string.
text_indexOfTextindexOfFind a substring (first/last).
text_isEmptyTextisEmptyWhether a string is empty.
text_joinTextjoinConcatenate strings.
text_lengthTextlengthLength of a string.
text_printTextprintPrint to the Blockly console (not a host dialog).
text_replaceTextreplaceReplace text in a string.
text_trimTexttrimTrim spaces.

Source: app/lib/scripts/blocklyToolbox.ts and block defs under app/lib/scripts/.