Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RELAY_URLNoWebSocket URL of the configured relay (for example wss://access.example.com/relay) used for remote control.
PUBLIC_URLNoPublic URL of the HTTP connector (for example https://access.example.com) for hosted agents.
RELAY_TOKENNoShared secret of the relay, set in the stdio or JSON-lines controller's environment for remote control.
NACE_API_KEYNoOptional 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_DIRNoPersistent data directory used by the HTTP connector for access-key management and for the service.
ASCTRL_DRIVER_EXENoFull path to the driver executable so the controller can start it.
ASCTRL_TOOLS_DENYNoComma-separated operation names to hide from discovery on the controller and reject on the driver.
NODE_EXTRA_CA_CERTSNoPath 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:

  1. connect (no arguments = this computer; a 6-digit code = a remote one).

  2. 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).

  3. 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.

  4. 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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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, …):

  • do: click(target, opts) · press(target) · type(target, text, opts) (target null: where the focus is) · fill({ label: value, … }) · keys("ctrl+s") · open(appOrUrl, opts) (opts.browser: "asctrl" for Asctrl's own browser, "user" for the user's through the extension)

  • wait and check: waitFor(text, opts) · waitGone(text) · expect(text, opts) (stops there if it doesn't show in 5 s) · shows(text) → true/false · until(() => condition, { timeoutSec, everyMs }) · until(">= 141 | <= 133", { x0, y0, x1, y1 }) (reads the number or text in that part of the latest screenshot about 8 times a second, goes on the moment a condition holds)

  • read: read(window) → text · look(window) → observe's reply

  • anything else: tool(name, args) · attempt(name, args) (returns a failure instead of stopping) · ask(question, details) → your answer · on(text, press) (a popup showing text that may turn up at any point: press that in it, in between steps) · sleep(ms) · log(…) · args (what you pass) Returns "Program is ": done (with what it returned), stuck (the action that failed, at its line, and why, with the windows that came and went), asking (its question), or running (waitSec passed). Stuck, it waits at that line: fix what is needed with act's single actions, then resume it by id (retry, skip, instead, code, abort); asking takes resume with answer. A text target that fits several controls or none is first put right on the computer where that needs no judgment (an on rule, a moment's wait), then chosen by the decision model when it is sure; only then does it stop for you. Skills: write the program over args (the rows, the values) and give learn; when it ends well it is kept on that computer, and skill: name runs it again with new args, no planning needed (query { what: "skills" } finds them). A program that ends well without learn is kept too, named after what it did (learn: false: not kept). A skill runs only when the window in front looks like one it was made in (force: true runs it anyway); one put right with instead is changed to match once that run ends well. pace: an input goes on the moment the screen reacts to it (react, default), "normal" waits until the screen is still, "fast" only for the program to take it (inputs known to bring nothing up).

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:

  • stuck on an action: retry (after you fixed things with act's single actions), skip (value: what the program gets back instead), instead { tool, args } (do this action in its place), code (JavaScript run in the program in the action's place, with its calls and args: several steps, a loop; what it returns is what the action returns), or abort (true, or the error message; the program gets an error it may catch)

  • asking: answer (the program's ask() returns it), or abort

  • any state: stop: true ends the program; nothing at all waits for it again Then waits up to waitSec (default 30, at most 300) and replies the way exec does: where the program stands now (done with its result, stuck, asking, or still running). A program that has ended takes no choice (resume with only its id still reports it); to do it again, run it again with exec.

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.

  • observe: Read a window as text: its controls (buttons, text boxes, checkboxes, menus, list items, links, text) as a tree, each with a reference like [e12], its state and value, and its centre @(x,y). Args: window, query, role, image, ocr, offscreen, max

  • screenshot: Capture the screen as an image. Args: window, marks, display, x0, y0, x1, y1, maxWidth

  • read_text: Read text. Args: target, window, role, nth, x0, y0, x1, y1, display, source

  • wait_for: Wait until something happens, and return the moment it does. Args: appears, text, stable, seconds, gone, window, ocr, until, x0, y0, x1, y1, everyMs, confirm, timeoutSec, after

  • timeline: What happened to the windows lately, from the computer's own timeline (no looking needed): what came up, went away, came to the front, was minimized or restored, with how long ago. Args: seconds, window

  • progress: How queued plans went: a report for each that finished since last asked (✓/✗ per step, and where things stand after a failure), and where the running one is. Args: waitSec

  • skills: Find skills for a task or window, show a saved skill, or export skills. Args: query, window, show, export, max

  • list_files: A folder's contents (modified time, size, name). Args: path, pattern, maxResults

  • read_file: Read a text file on the computer, with line numbers. Args: path*, offset, limit

  • search_files: Search file contents in a file or folder (regular expression). Args: path*, pattern*, glob, ignoreCase, context, maxResults

  • disk_usage: Show where disk space goes under a folder: the largest subfolders as a tree (size and share of the parent) and the largest files. Args: path, depth, perFolder, topFiles

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.

  • 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*

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 5 tools

Disambiguation2/5

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.

Naming Consistency3/5

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.

Tool Count2/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues