ios_tv_button
Press a button on an Apple TV remote: the d-pad (up/down/left/right), select (the centre click), menu (back), home, or a playback/volume key. action makes it a double tap or a held press. TWO THINGS THAT SURPRISE CALLERS, both measured on tvOS 27: menu pops a navigation stack, so it does NOT leave an app that was launched programmatically — home does. And a press lands on whatever currently has focus, which nothing reports back, so take a screenshot before pressing select: pressing blind on the TV home screen can reach the top shelf, whose rows include purchase flows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Apple TV UDID or name | |
| wake | No | Wake the TV first if it is asleep (default: true). Waking navigates to the home screen. | |
| action | No | How to press it (default: singletap) | |
| button | Yes | Which remote button to press |