nostrings
v0.7.0Computer use on your Mac and Android phone: JS scripts, accessibility diffs, background input.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
js
Run JavaScript in a persistent computer-use session. Put a whole step in one call: several actions, then one read. Top-level const/let/function/await persist across calls until js_reset (redeclaring is fine). const calc = await ui.getApp("Calculator"); // name, bundle id, or "pid:123"; launches if needed, does not steal focus await calc.pressKey("Escape"); // xdotool syntax: Return, Tab, ctrl+a, super+c (super = Cmd) await calc.typeText("12*3="); // "\n" presses Return await calc.getAXState(); // text accessibility tree; later reads ret…
| Parameter | Type | Description |
|---|---|---|
code * | string | JavaScript to run. Top-level await is supported. |
timeout_ms | integer | Time limit in milliseconds (default 120000). |
title | string | A few words naming this step, for the action log. |
js_reset
Restart the session and drop every binding. Use when a script is stuck or you want a clean slate.