← Files Testing React Native AppsARCHIVED FILE

skills/agent-device/references/coordinate-system.md

649 Bytes · Oct 5, 2026 · 18:30 UTC

↓ Download file

# Coordinate System

## When to open this file

Open this file only when you must use raw coordinates instead of selectors or `@ref` targeting.

## Main commands to reach for first

- `screenshot`
- coordinate-based `click` or `swipe`

## Most common mistake to avoid

Do not assume coordinates mean the same thing across platforms or runs. Prefer selectors and refs first.

## Canonical loop

```bash
agent-device screenshot /tmp/current-screen.png
agent-device click 120 240
```

## Rules

- Origin is the top-left of the device screen.
- iOS uses device points.
- Android uses pixels.
- Use screenshots to reason about coordinates before acting.

SHA-256: 725e8695a2d5d50b8b59cabd47c0613021d3f25bcfbc42b3d2a15b9bcfbf6437