Asctrl
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RELAY_URL | No | WebSocket URL of the configured relay (for example wss://access.example.com/relay) used for remote control. | |
| PUBLIC_URL | No | Public URL of the HTTP connector (for example https://access.example.com) for hosted agents. | |
| RELAY_TOKEN | No | Shared secret of the relay, set in the stdio or JSON-lines controller's environment for remote control. | |
| NACE_API_KEY | No | Optional decision model API key. When set, candidate controls or window text may be sent to Nace at https://console.nace.ai/v1/systemone to choose among ambiguous targets. | |
| ASCTRL_DATA_DIR | No | Persistent data directory used by the HTTP connector for access-key management and for the service. | |
| ASCTRL_DRIVER_EXE | No | Full path to the driver executable so the controller can start it. | |
| ASCTRL_TOOLS_DENY | No | Comma-separated operation names to hide from discovery on the controller and reject on the driver. | |
| NODE_EXTRA_CA_CERTS | No | Path to a CA PEM file so an external Node controller trusts a private certificate authority for the relay. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Asctrl lets you see and operate a Windows computer. Work like this:
connect (no arguments = this computer; a 6-digit code = a remote one).
Plan first, with run. Write the steps by the text they act on ("Compose", "To"), the way you expect the screen to be, without looking first, and end with expect so success is checked. run returns at once: write the next plan while it runs. Text is matched on the computer; only when it fits several controls or none does a decision model choose, and only when it is sure. Popups that turn up while a plan runs are dismissed in between its steps (give the ones you expect in on).
When a plan fails, its report says where things stand (the window's controls, with references): re-plan from there. Look (observe, or screenshot for layout, images and programs that draw their own UI) only when the next plan needs something you can't guess, such as what a page lists.
Single actions (click, type_text, set_value, …) are for one-off corrections. They take target, a reference ("e12") or the text the thing shows, or x and y on the latest screenshot, and their reply says what changed, so you rarely need to look again.
Work that loops over rows or branches on what the screen shows is a program (exec): JavaScript the computer runs itself, which comes back only when it ends, asks, or an action fails (it then waits at that line for resume). Give it learn so it is kept as a skill, and look in skills first: a task done before runs again with skill and new args.
For a screen drawn as a grid (a game board, a calendar), declare it in run's grids and name cells "board[r,c]"; {read: "board"} reads every cell. Never guess coordinates: use a target, or x and y you can see on the latest screenshot.
Five tools: connect, query (looking: observe, screenshot, read_text, wait_for, progress, skills, files), act (doing: run a plan, click, type_text, set_value, press_keys, open_app, focus_window, shell and files, ...), exec and resume. query and act take the name of what they do and its arguments: act { do: "run", args: { steps: [...] } }, query { what: "observe", args: { window: "Notepad" } }.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| connectA | Connect to a computer. Without arguments: this computer, directly (the driver app is started if it is not running). With code: a remote computer showing that 6-digit code, through the relay; it connects right away. Call it first: query, act, exec and resume all work on the computer it connects to, and the person at that computer sees an orb while connected. Replies with the computer's name, or why it could not connect. Connecting again replaces the current connection; act { do: "disconnect" } ends it. When reconnecting after a restart, pass waitSec to keep retrying until the driver is back. |
| execA | Run a JavaScript program on the computer (async; top-level await and return work). The computer runs it itself, step after step, and this call comes back only when it ends, gets stuck, asks, or waitSec passes. Use it for work that loops over rows or branches on what the screen shows; a straight sequence of steps is simpler as a plan (act { do: "run" }), and act's single actions are for one-off corrections. The program has no files, network or processes of its own, only these calls, each a tool run as you would run it (replies { ok, text, error, data }; opts are that tool's own arguments: window, nth, role, timeoutSec, …):
|
| resumeA | Go on with a program that exec (or an earlier resume) left stuck, asking or running; id is the number in its reply, "Program is ". Give one choice, by the state that reply named:
|
| queryA | Look at the computer that connect connected to, without changing anything on it: what: the kind of look, args: its arguments (* = needed), help: true for a kind's full description and every argument. Look only when the next step needs something you can't guess (what a page lists, why a plan failed): a plan (act { do: "run" }) and every action already report what changed. Reading the screen as controls (observe) is cheaper and more exact than a screenshot; take a screenshot for layout, images and programs that draw their own UI. Doing things, and skills import and forget, is act's.
|
| actA | 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.
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
query, observe, screenshot, read_text, wait_for, and timeline all read machine state with overlapping purposes; click, type_text, press_keys, set_value, scroll, drag, mouse, run, act, and exec all perform actions or coordinate them. The descriptions help, but the boundaries remain easy to confuse, especially direct action tools versus act's single actions and duplicate skills tools.
Most names are lowercase snake_case, but the set mixes specific verbs (click, type_text), broad collection verbs (query, act, exec, run), and nouns (skills, timeline, clipboard, job, mouse). It is readable but not a predictable verb_noun pattern, and 'skills' appears in both query and act surfaces.
Although the header says 5 tools, the actual surface exposes roughly 37 tools, which is far above the 25-tool threshold even for rich desktop automation. Many low-level actions duplicate the higher-level act/run/exec entry points, making the set feel bloated rather than well-scoped.
The surface covers connection, observation, input, plans/programs, files, disk usage, PowerShell jobs, clipboard, admin, restart, and upload/download, so most desktop automation workflows have a path. Minor gaps exist, such as no dedicated process/service manager beyond PowerShell, but there are no obvious dead ends.