ios_safari_close_tab
Close Safari tabs on an iOS device by title, or list what is open. Safari's tab overview is the only way to close a tab — the Web Inspector protocol behind ios_safari_list_pages cannot do it — so this drives the native UI. Call with no title to list the open tabs and close nothing. Titles match case-insensitively on any part of the title. Note this sees MORE tabs than ios_safari_list_pages, which only reports pages that are loaded and inspectable. Requires Safari in the foreground and an active iOS automation session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Close every tab matching `title` instead of only the first. Default false. | |
| udid | Yes | iOS device UDID | |
| title | No | Close tabs whose title contains this text. Omit to just list the open tabs. |