> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tapkit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# App Control

> Open apps, type text, and run shortcuts

## Open App

```python theme={null}
phone.open_app("Settings")       # Opens Settings via Spotlight search
phone.open_app("Safari")         # Opens Safari
```

Opens an app by name using Spotlight search. Handles the full search-and-tap flow automatically.

## Type Text

```python theme={null}
phone.type_text("Hello world")                           # Simulate keystrokes
phone.type_text("https://example.com", method="paste")   # Paste from clipboard
phone.type_text("Long message here", method="shortcut")  # Uses iOS Shortcut
```

| Method             | Description                                                                                      |
| ------------------ | ------------------------------------------------------------------------------------------------ |
| `"keys"` (default) | Simulates individual key presses. Works everywhere, slower for long text.                        |
| `"paste"`          | Uses clipboard. Fast for long text, may not work in all contexts.                                |
| `"shortcut"`       | Uses iOS Shortcut for clipboard. Requires [shortcut setup](/setup/shortcuts). Fast and reliable. |

## Run Shortcuts

```python theme={null}
phone.run_shortcut(name="My Shortcut")  # By name
phone.run_shortcut(index=0)             # By position (0-based)
```

Shortcuts run without input parameters. For shortcuts needing input, set up data beforehand (clipboard, files) or create a wrapper shortcut.
