pub enum MachineTool {
Show 31 variants
Move {
x: f64,
y: f64,
},
Click {
x: Option<f64>,
y: Option<f64>,
down_ms: Option<f64>,
button: Option<MouseButton>,
count: Option<f64>,
},
Drag {
to: Point,
from: Option<Point>,
down_ms: Option<f64>,
},
Scroll {
delta_x: Option<f64>,
delta_y: Option<f64>,
},
Type {
text: String,
},
Press {
x: f64,
y: f64,
button: Option<MouseButton>,
},
Pointer {
x: f64,
y: f64,
},
Release {
x: f64,
y: f64,
button: Option<MouseButton>,
},
Wheel {
x: f64,
y: f64,
delta_x: f64,
delta_y: f64,
},
Keys {
strokes: Vec<KeyStroke>,
},
Windows,
Focus {
window: f64,
},
Place {
window: f64,
x: f64,
y: f64,
},
Resize {
window: f64,
width: f64,
height: f64,
},
Close {
window: f64,
},
Reload {
window: f64,
},
Open {
app: WindowApp,
url: Option<String>,
path: Option<String>,
command: Option<String>,
},
Key {
keys: Vec<String>,
window: Option<f64>,
},
PageHtml {
window: Option<f64>,
},
PageScript {
script: String,
window: Option<f64>,
},
List {
path: Option<String>,
pattern: Option<String>,
},
Grep {
pattern: String,
path: Option<String>,
glob: Option<String>,
ignore_case: Option<bool>,
context: Option<f64>,
output: Option<GrepOutput>,
max: Option<f64>,
},
Read {
path: String,
line: Option<f64>,
before: Option<f64>,
after: Option<f64>,
},
Write {
path: String,
text: String,
},
Replace {
path: String,
old: String,
new: String,
all: Option<bool>,
},
Insert {
path: String,
after: f64,
text: String,
},
Remove {
path: String,
start: f64,
end: f64,
},
Processes {
sort: Option<ProcessSort>,
limit: Option<f64>,
filter: Option<String>,
},
Kill {
pid: f64,
signal: Option<ProcessSignal>,
},
Internet {
mode: InternetMode,
},
Wait {
seconds: f64,
},
}Expand description
Everything a seat or an agent does on a machine. Positions are desktop pixels. Paths are
relative to /repository, and / is the repository root.
Variants§
Move
Click
count clicks in a row (2 is a double click). A click on the same spot right after
another continues its run, the way a person’s quick second click does.
Drag
Scroll
Type
Press
A person’s own input, sent as it happens: a button goes down and up where the pointer
is, pointer moves it while a button is down (a drag), the wheel turns at a point, and
keys go down and up in order. Each lands at once; agents use the tools above.
Pointer
Release
Wheel
Keys
Windows
Focus
Place
Resize
Close
Reload
Load a Web window’s page again, after its files change. Previews follow their file on their own.
Open
A web window at url; a files window at path (a folder of /repository); the file at
path in an editor (text and code) or a preview (images, PDFs, video, audio), which
follows the file as it changes; or a terminal, running command in view and staying open
at a prompt when it ends.
Key
A chord like [‘ctrl’, ‘s’]. Focuses window first when given.
PageHtml
The page in Web window window, or the focused one: { url, html } as JSON, the HTML
trimmed to the body without styles, scripts and SVG.
PageScript
Runs script in the page of Web window window, or the focused one: its result as text,
a string as it is and anything else as JSON.
List
Grep
Fields
output: Option<GrepOutput>Read
Write
Replace
Insert
Remove
Processes
Kill
Stops only the agent user’s own processes, never the machine’s or the desktop’s.
Internet
How the machine reaches the internet: private only from a residential address, billed
per GB to whoever pays for the machine, or public from its own.
Fields
mode: InternetModeWait
Pause, then look again. Costs machine time but no model calls; at most
WAIT_MAX_SECONDS a call.