act
Run one computer action or a whole multi-step plan on a Windows PC, then get a report of what changed or why it failed.
Instructions
Act on the computer that connect connected to: do: the action, args: its arguments (* = needed), help: true for an action's full description and every argument. run carries out a whole plan of steps in one call and checks it with expect; the others are single actions for corrections, and the computer's own work (shell, files, admin). Work that loops over rows or branches on what the screen shows is a program: exec. Each reply says what was done and what changed (the window's controls or a screenshot, per after), or why it failed with the controls that are there, so you rarely need to look again. Actions change the computer for real: run_powershell runs anything, write_file and edit_file change files.
disconnect: Disconnect from the current computer.
click: Click something: target (a reference like "e12", or the text it shows) or x and y on the latest screenshot. Args: target, x, y, window, role, nth, timeoutSec, effect, button, count, modifiers, mode, after, watch
type_text: Type text. Args: text*, target, x, y, window, role, nth, timeoutSec, replace, enter, method, after, watch
press_keys: Press a key or combination, or several in a row separated by spaces: enter, esc, ctrl+s, alt+f4, win+r, 'ctrl+a delete', 'tab tab enter'. Args: keys*, window, repeat, holdSec, after, watch
set_value: Make a control hold a value, whatever kind of control it is, and check that it does. Args: target, x, y, window, role, nth, timeoutSec, value, fields, after
scroll: Turn the mouse wheel over something: target or x,y, or — with neither — where the pointer is in the window in front. Args: target, x, y, window, role, nth, timeoutSec, direction, amount, after, watch
drag: Press a mouse button on one thing, move to another and release: from / to (references or text) or fromX, fromY / toX, toY. Args: from, to, fromX, fromY, toX, toY, window, button, seconds, after, watch
mouse: Low-level mouse steps, for what click and drag can't express. Args: action*, target, x, y, window, role, nth, timeoutSec, button, dx, dy, seconds, after
run: Carry out a plan: steps named by what they act on, written without looking first. Args: steps*, goal, when, whenSec, on, window, repeat, grids, fast, wait
skills: Programs that worked, kept on this computer to run again (exec with learn keeps one; exec with skill runs one). Args: query, window, show, forget, export, import, max
open_app: Open a program, file, folder or URL as if double-clicked: notepad, control, taskmgr, ms-settings:display, C:\Users\xx\Desktop\report. Args: target*, browser, args, electron, cwd, timeoutSec, after
focus_window: Switch to a window, or minimize / maximize / restore / close / move it. Args: window*, action, x, y, width, height, after
clipboard: The clipboard. Args: text
run_powershell: Run a PowerShell script on the computer and return its output. Args: script, timeoutSec, background, reset
job: A background job (run_powershell background): its status and the output since the last look (all: everything), or stop: true to stop it with the processes it started. Args: jobId, all, stop
request_admin: Request administrator rights.
restart_computer: Restart the computer. Args: delaySec, prepareOnly, cancel
write_file: Write a text file on the computer (overwrites it entirely, creates it and any folders if missing). Args: path*, content*, encoding
edit_file: Replace an exact piece of a text file, keeping its encoding and line endings. Args: path*, oldText*, newText*, replaceAll
upload_file: Copy a file from the machine this server runs on to the connected computer (max 20 MB). Args: localPath*, remotePath*
download_file: Copy a file from the connected computer to the machine this server runs on (max 20 MB). Args: remotePath*, localPath*
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": {
"do": "<do>"
},
"name": "act"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| do | Yes | The action | |
| args | No | Its arguments | |
| help | No | Only say what this action does and takes |