Tondavo
v0.1.9Debug your localhost web app on your real phone: errors, screen, taps and JS for your coding agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
status
Is a phone connected? Lists each connected device (model, browser, visible or in the background, last heard).
logs
Recent events from the phone: JS errors, failed or stalled requests, console output, taps, page changes, layout overflow, things the user pointed at with a 3-finger tap.
| Parameter | Type | Description |
|---|---|---|
limit | number | How many (default 50) |
type | string | Only this event type, e.g. js_error, net_error, user_point, tap |
screen
What is visible on the phone's screen right now, as text: each element with its position and size, tappable ones in [brackets].
screenshot
A screenshot of the phone. A real frame of the whole screen when screen capture is running (tondavo --capture, after one tap on the phone), otherwise the page drawn by the phone's own browser.
eval
Run JavaScript in the page on the phone and return the result (an expression, or statements with return). Use it to read state or to check a cause.
| Parameter | Type | Description |
|---|---|---|
code * | string | JavaScript to run in the phone's page; the value of the last expression, or of a returned promise, comes back |
timeout_ms | number | Default 5000 |
tap
Tap on the phone like a finger: whatever is on top at that point gets it (an invisible overlay catches it, as it would a real tap). iOS opens the keyboard and starts audio only for real taps.
| Parameter | Type | Description |
|---|---|---|
target * | string | A CSS selector (e.g. "#send") or "x,y" in CSS pixels from the top-left of the visible screen |
type
Put text into a field on the phone (fires input and change).
| Parameter | Type | Description |
|---|---|---|
target * | string | A CSS selector (e.g. "#send") or "x,y" in CSS pixels from the top-left of the visible screen |
text * | string | The text to put in the field |
swipe
Swipe on the phone from one point or element to another.
| Parameter | Type | Description |
|---|---|---|
from * | string | A CSS selector (e.g. "#send") or "x,y" in CSS pixels from the top-left of the visible screen |
to * | string | A CSS selector (e.g. "#send") or "x,y" in CSS pixels from the top-left of the visible screen |
reload
Reload the page on the phone. (It also reloads by itself when a project file is saved.)
wait_for
Wait for the next event from the phone, e.g. "hello" after a reload, "js_error", "tap". Use it to check a fix instead of sleeping.
| Parameter | Type | Description |
|---|---|---|
text | string | Only an event containing this text |
timeout_ms | number | Default 15000 |
type | string | Event type, or "any" |