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.
Open App
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
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. Fast and reliable. |
Run Shortcuts
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.