Handbook · Reference · Blockly · Items

Blockly: Items

Where in the UI. Scripts tab toolbox.

Create, retype, trash, apply mutations.

Block idRead asPurpose
containd_create_root_listcreate root listcallHost(createItem) with parentId null → itemId
containd_create_root_list_by_idcreate root list by idcallHost(createItem) with parentId null and explicit template/element ids → itemId
containd_create_child_under_itemcreate child under itemcallHost(createChildItem) with parentId → itemId
containd_create_child_under_item_by_idcreate child under item by idcallHost(createChildItem) with parentId and explicit template/element ids → itemId
containd_create_child_on_bound_itemcreate child on bound itemcallHost(createChildItem) on bound item → itemId
containd_create_child_on_bound_item_by_idcreate child on bound item by idcallHost(createChildItem) on bound item with explicit template/element ids → itemId
containd_set_element_type_on_bound_itemset element type on bound itemsame template; resets layout to 0
containd_set_element_type_on_itemset element type on itemcallHost(setElementType) with itemId — requires write.relatives when not bound item
containd_apply_element_defaults_on_bound_itemapply element defaults on bound itemitem fields, categories, or both
containd_apply_element_defaults_on_itemapply element defaults on itemcallHost(applyElementDefaults) with itemId — requires write.relatives when not bound item
containd_move_item_to_trashmove item to trashsilent delete to trash by default; requires write.item
containd_create_itemcreate itemcallHost(createItem) → itemId
containd_create_child_itemcreate child itemcallHost(createChildItem) → itemId
containd_create_item_extendedcreate 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_jsoncreate item extended jsoncallHost(createItemExtended) with full JSON request → itemId
containd_apply_mutationsapply mutationsJSON array of mutation records