Skip to main content

GUI API

This page is generated from a recorded Java binding inventory. Supported means an official script uses the member; it does not mean the member has passed focused and live acceptance testing.

MemberStabilityVerificationAI-runnableOfficial usePurpose
clickSupportedboundNoYesClick a slot
click_itemSupportedboundNoYesFind and click item
click_item_by_loreExperimentalboundNoNoFind and click item by lore
closeSupportedboundNoYesClose current GUI (delegates to gui_close command)
debugExperimentalboundNoNoDebug GUI info
findExperimentalboundNoNoFind item in GUI
find_by_relationExperimentalboundNoNoFind item by position relation
get_container_sizeExperimentalboundNoNoReturns number of container slots (excludes player inv)
get_hovered_itemExperimentalboundNoNoGet item under cursor (moved from actions)
get_slot_infoSupportedboundNoYesReturns a Lua table with full slot details
get_slotsSupportedboundNoYesBulk scan returning array of slot info tables
get_titleSupportedboundNoYesGet current GUI title
has_titleSupportedboundNoYesCheck if current GUI title contains pattern
is_openSupportedboundNoYesCheck if any GUI is open
openExperimentalboundNoNoOpen inventory
poll_slot_changesSupportedboundNoYesReturns array of {slot, type, name, has_foil} changes
safe_modeSupportedboundNoYesSTOP ALL activity before GUI interaction CRITICAL: Call this before ANY GUI operation to ensure player is completely still
stop_watchingSupportedboundNoYesStop the slot watcher
switch_hotbarExperimentalboundNoNoSwitch hotbar slot
wait_forSupportedboundNoYesWait for GUI
watch_slotsSupportedboundNoYesStart watching slots on main thread for changes