Skip to main content
Glama
codex-computer-use-mcp-win

codex-computer-use-mcp-win

Computer Use

js
Destructive

Run JavaScript in a persistent Windows Computer Use worker to inspect and control native apps, manage windows, take screenshots, click, type, scroll, and return text or images.

Instructions

Run JavaScript in a persistent Computer Use worker with a vm guardrail. The session exposes sky (OpenAI's Windows Computer Use API: list_apps, list_windows, get_window_state, click, press_key, type_text, scroll, set_value, drag, perform_secondary_action, activate_window, launch_app) and cua (a compatibility facade: await cua.getApp("Notepad")). Top-level await works, and top-level let/const/function/class bindings survive between calls. Use nodeRepl.write(...) to return text and nodeRepl.emitImage(...) to return an image. Timeouts reset the session. Node APIs, eval, Function, and import() are blocked. The worker shares the server process id and file descriptors, so this is a guardrail against accidental Node access, not a security boundary for untrusted code.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>"
    },
    "name": "js"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesJavaScript to execute in the Computer Use session.
titleNoOptional short title shown by some clients for this execution.
timeout_msNoOptional execution timeout in milliseconds. Defaults to 30000 (30 seconds).
completion_summaryNoOptional one-line summary of what the execution did.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructive and open-world behavior, and the description adds substantial context beyond them: blocked Node APIs, session-reset-on-timeout, surviving top-level bindings, and the explicit caveat that the vm guardrail is not a security boundary for untrusted code. That last point is exactly the kind of risk disclosure an agent needs, though it stops short of describing failure/error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then progressively discloses API surface, persistence rules, and the security caveat. It is dense but every sentence carries information; the parenthetical API enumeration is long but justified for a code-execution tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly compensates by explaining how results are returned (`nodeRepl.write` for text, `nodeRepl.emitImage` for images). Combined with the guardrail and persistence notes, an agent has everything needed to invoke this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning for the `code` parameter by documenting top-level await, persistent bindings, and the `nodeRepl.write`/`nodeRepl.emitImage` return conventions. It does not elaborate on `timeout_ms` or `completion_summary`, which the schema already covers.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Run JavaScript in a persistent Computer Use worker') and enumerates the exact API surface exposed (`sky`, `cua`), so an agent knows precisely what capability this unlocks. It is clearly distinct from `js_reset` and `computer_use_status` by virtue of being the execution tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the description explains session persistence and that timeouts reset the session, which hints at when state carries over. However, it never explicitly says when to prefer this over `js_reset` or `computer_use_status`, nor does it state prerequisites or exclusions beyond the blocked-API list.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools