Mirasim Computer Use

v0.1.2-rc.2
io.github.mirasim-ai/computer-use Checked 4 hours ago Published 9 hours ago

Drive browsers, macOS apps and Electron apps through their accessibility trees.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

computer_repl

Run JavaScript in this session's PERSISTENT runtime to look at and act on the GUI — web pages in a browser, Electron apps and native macOS apps, whichever this server mounts — the one tool for both. The code is an async function body: `await` every verb, `return` a value to get it back as JSON; top-level const/let/function declarations SURVIVE to later calls, so keep handles and collected data in them. Every verb lives on a surface HANDLE (a tab / window / app); there are no top-level verbs. Bind first: computer.surface('<id or title>') names one, computer.surface() alone takes the only su…

ParameterTypeDescription
code *stringJavaScript, run as the body of an async function in the persistent runtime. `await` every verb; `return` what you want back. Bind once — first call: `const w = await computer.surface();` — binding…
interactionNative apps default to background — macOS: driver mouse/activation/clipboard routes are blocked, including fallback. Use desktop only after explaining effects and obtaining permission covering this…
observationHow much of the end-of-run observation to render. "full" (default) is the element list and the text excerpt; "brief" keeps the head (title, targets, verdict) and drops the listing; "none" leaves only…
platformstringFor a HOST that mounts several platforms in one session: the platform this call is about ("browser", "electron", "macos"). computer.surfaces() and computer.surface() then see only its surfaces, and th…
purposestringBriefly describe the intended task when requesting app access. Shown to the user as the agent's stated purpose; it does not narrow the app permission. Do not include secrets.
targetstringBind this surface before the code runs — the same string computer.surface() takes (an id, a whole title, or a piece of one). For a HOST that decides which surface a call is about: the code can still…

computer_repl_reset

Reset computer_repl's persistent JavaScript runtime: every binding — handles, variables, functions — is discarded, and the next computer_repl call starts fresh and returns the API reference again. Nothing on the surfaces changes: no tab, window or app is closed. This runtime's target ownership is released after any active call stops. Use it only when the runtime is wedged or its state is wrong, never as a way to "start over" on the screen.