Mouse click
Simulates a mouse click in the game world. Left click: attack entity or start breaking block. Right click: use item or interact with entity/block. The bot must be online with valid player, level, 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 click.
uuidapplication/json- body
Request to simulate a mouse click action in the game world. Used for attacking entities, breaking blocks, using items, and interacting with blocks/entities.
button*stringWhich mouse button to simulate clicking.
"MOUSE_BUTTON_UNSPECIFIED""LEFT_BUTTON""RIGHT_BUTTON"Response for mouse click action.
application/json- response
Response for mouse click action.
success*booleanWhether the click action was successfully performed.
error?|Error message if success is false. Possible errors: "Invalid mouse button"
curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/mouse:click' \
-H 'Content-Type: application/json' \
-d '{
"button": "MOUSE_BUTTON_UNSPECIFIED"
}'{
"success": true,
"error": "string"
}Was this page helpful?
Get inventory state GET
Returns the current state of the bot's open container/inventory. Includes layout information, slot contents, and carried item. The bot must be online with a valid player.
Open inventory POST
Opens the player's inventory screen. Sends a packet to the server to display the inventory UI. The bot must be online with a valid player.
