--- name: scrcpy-gotchas description: Use when interacting with Android devices via scrcpy-mcp tools (tap, swipe, input_text, key_event, ui_dump, ui_find_element, app_start, etc.). Documents common pitfalls and lessons learned. --- # scrcpy-mcp Gotchas ## Coordinate systems: always use native coordinates `scrcpy_tap`, `scrcpy_swipe`, `scrcpy_long_press`, and `scrcpy_scroll` take **device-native coordinates** — the same space that `scrcpy_ui_dump` / `scrcpy_ui_find_element` report in their `bounds` and `tapX`/`tapY`, and the same space `adb shell input tap` uses. So the reliable workflow needs no scaling math: ```typescript // Find the element (returns native tapX/tapY), then tap them straight through const el = scrcpy_ui_find_element({ text: "