js
Executes JavaScript in OpenAI's cua_repl runtime to control native apps and browsers on a user's computer for Computer Use automation.
Instructions
Control native apps or browsers on the user's computer through OpenAI's official Computer Use JavaScript runtime (cua_repl). Computer Use is not ready: Codex app-server was not found. Checked: /Applications/ChatGPT.app/Contents/Resources/codex-cli/CodexCLI.app/Contents/MacOS/codex, /Applications/ChatGPT.app/Contents/Resources/codex, /root/Applications/ChatGPT.app/Contents/Resources/codex-cli/CodexCLI.app/Contents/MacOS/codex, /root/Applications/ChatGPT.app/Contents/Resources/codex. Install or update the official ChatGPT macOS app (https://chatgpt.com/download), then open it. If it is installed elsewhere, set "codexPath" to its absolute path in /app/config.json, or remove "codexPath" to restore automatic discovery.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "js"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | JavaScript to run in the official cua_repl runtime. |