Click inventory slot
Performs a click action on an inventory/container slot. Supports various click types (left, right, shift, drop, swap, middle). The bot must be online with a valid player and gameMode.
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
instance_id*stringThe UUID of the SoulFire instance containing the bot.
uuidbot_id*stringThe profile UUID of the bot performing the inventory action.
uuidslot*integerThe slot index to click. Valid range depends on the currently open container. Special value: -999 for clicking outside the inventory (dropping items).
int32application/json- body
Request to perform a click action on an inventory slot. Simulates the various mouse click interactions available in Minecraft inventory UIs.
clickType*stringThe type of click to perform. Different click types have different effects on items.
"CLICK_TYPE_UNSPECIFIED""LEFT_CLICK""RIGHT_CLICK""SHIFT_LEFT_CLICK""DROP_ONE""DROP_ALL""SWAP_HOTBAR""MIDDLE_CLICK"hotbarSlot*integerFor SWAP_HOTBAR click type: which hotbar slot to swap with. Range: 0-8 (corresponding to hotbar slots 1-9). Ignored for other click types.
int32Response for inventory click action.
application/json- response
Response for inventory click action.
success*booleanWhether the click action was successfully sent to the server. Note: This indicates the action was sent, not that the server accepted it.
error?|Error message if success is false. Possible errors: "Invalid click type"
curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/inventory/slots/0:click' \
-H 'Content-Type: application/json' \
-d '{
"clickType": "CLICK_TYPE_UNSPECIFIED",
"hotbarSlot": 0
}'{
"success": true,
"error": "string"
}Was this page helpful?
Click dialog button POST
Clicks a button in the current dialog. Button index depends on dialog type (see BotClickDialogButtonRequest). The dialog is typically closed after the button click. Note: Full dialog button packets are not yet implemented; this clears local state.
Close container POST
Closes the currently open container (chest, crafting table, etc.). Returns to the player inventory view. The bot must be online with a valid player.
