MCP tools

The MCP tool that presses a hardware button on the Team's Simulator: Home, lock, volume or the app switcher.

simulator_button presses one hardware button on the Team’s running Simulator and releases it: home goes to the Home Screen, lock (also called power) locks or wakes the screen, volume-up and volume-down change the volume, and app-switcher opens the app switcher. duration holds the button, for example a long press of lock. It does not quit or launch apps; use simulator_launch_app to bring an app back.

Read-only Destructive Idempotent
No No No

Inputs

Input Type Required Default What it does
teamId string (UUID) Yes — The Team, from list_teams
simulator string No The Team’s default device Which device, by id from list_simulators
button string: home, lock, power, volume-up, volume-down, app-switcher Yes — The button. power is the same as lock
duration number, 0 to 60 No A short press Seconds to hold it

Result

Field What
ok true
{ "ok": true }

Errors

Message When What to do
button is required. button is missing Send a button
button must be one of home, lock, power, volume-up, volume-down, app-switcher. Another name Use one of these
duration must be a number from 0 to 60. duration out of range Send 0 to 60

Plus the errors every Simulator tool can return: see start_simulator.

Example

{"name": "simulator_button", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "button": "home"}}