Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
Show 71 variants InstallChromium { update: bool, }, Certify { action: CertifyCommand, }, Capabilities, Daemon { action: DaemonCommand, }, Doctor { json: bool, }, McpConfig { client: McpClient, print: bool, }, Profiles { action: Option<ProfileCommand>, }, Knowledge { action: KnowledgeCommand, }, Result { action: ResultCommand, }, DeleteProfile { name: String, }, Navigate { url: String, timeout_ms: u64, expected_revision: Option<u64>, }, Click { target: String, expected_revision: Option<u64>, }, Preflight { target: String, action: PreflightAction, }, ClickAt { x: f64, y: f64, }, ClickExpectPopup { target: String, expected_revision: Option<u64>, }, DoubleClick { target: String, expected_revision: Option<u64>, }, Hover { target: String, }, Drag { source: String, destination: String, expected_revision: Option<u64>, }, Type { text: String, target: Option<String>, expected_revision: Option<u64>, }, Key { key: String, expected_revision: Option<u64>, }, KeyDown { key: String, expected_revision: Option<u64>, }, KeyUp { key: String, expected_revision: Option<u64>, }, Shortcut { shortcut: String, expected_revision: Option<u64>, }, Clear { target: String, expected_revision: Option<u64>, }, Check { target: String, expected_revision: Option<u64>, }, Uncheck { target: String, expected_revision: Option<u64>, }, Select { target: String, value: String, expected_revision: Option<u64>, }, Upload { target: String, files: Vec<PathBuf>, expected_revision: Option<u64>, }, Screenshot { output: String, format: VisualFormat, quality: Option<u8>, scale: f64, full_page: bool, clip: Option<VisualClip>, target: Option<String>, }, Text, Dom, Observe { deep_dom: bool, screenshot: bool, form_values: bool, semantic_level: Option<String>, region: Option<String>, }, InspectPage, FindTarget { input: PathBuf, }, ActAndVerify { input: PathBuf, predicate: Option<String>, timeout_ms: u64, }, ExtractStructured { input: PathBuf, }, RecoverRun { execution_id: String, }, Scroll { dx: f64, dy: f64, expected_revision: Option<u64>, }, Wait { condition: String, timeout_ms: u64, }, Diagnostics { duration_ms: u64, }, AcceptDialog, DismissDialog, DismissConsent, Download { destination: PathBuf, timeout_ms: u64, }, Targets, NewTarget { url: String, }, SelectTarget { id: String, }, CloseTarget { id: String, }, Frames, SelectFrame { id: String, }, Evaluate { expression: String, }, Cookies, ExportCookies { output: PathBuf, }, ImportCookies { input: PathBuf, }, Pdf { output: String, background: bool, }, FillForm { fields: String, expected_revision: Option<u64>, }, Batch { input: Option<PathBuf>, atomic: bool, mode: BatchMode, expected_revision: Option<u64>, }, Workflow { action: Option<WorkflowAuthoringCommand>, input: Option<PathBuf>, }, Task { action: TaskCommand, }, Ir { action: IrCommand, }, WorkflowResume { workflow: PathBuf, checkpoint: PathBuf, inputs: Option<PathBuf>, }, ResolveIntent { input: Option<PathBuf>, }, ExecuteIntent { input: Option<PathBuf>, }, Verify { predicate: String, timeout_ms: u64, }, ReconcileRefs { from_revision: u64, hints: Vec<String>, scope: Option<String>, refs: Vec<String>, }, ObserveDelta, Checkpoint { action: CheckpointCommand, }, Snapshot { action: SnapshotCommand, }, ClipboardRead, ClipboardWrite { text: String, }, Tui,
}

Variants§

§

InstallChromium

Download and install a managed Chrome for Testing build.

Fields

§update: bool

Reinstall the version pinned by this Glass release.

§

Certify

Evaluate release evidence and forbidden outcomes without starting a browser.

Fields

§

Capabilities

Print the versioned Glass capability manifest without starting Chrome.

§

Daemon

Start, inspect, stop, or diagnose the local Unix-socket daemon.

Fields

§

Doctor

Inspect local browser, daemon, profile, policy, and store health.

Fields

§json: bool

Emit the stable machine-readable diagnostic contract.

§

McpConfig

Print deterministic MCP configuration for a supported client.

Fields

§client: McpClient
§print: bool

Explicitly print the generated JSON configuration.

§

Profiles

List or manage saved profiles.

Fields

§

Knowledge

Inspect and manage the bounded local knowledge store.

Fields

§

Result

Inspect and purge bounded local diagnostic result artifacts.

Fields

§

DeleteProfile

Delete a saved profile.

Fields

§name: String
§

Navigate

Navigate to a URL.

Fields

§timeout_ms: u64
§expected_revision: Option<u64>
§

Click

Click an element by an explicit ref/name/role/text/CSS/ordinal locator.

Fields

§target: String
§expected_revision: Option<u64>
§

Preflight

Resolve a target and report clickability without performing an action.

Fields

§target: String
§

ClickAt

Click exact viewport coordinates for canvas/map surfaces.

Fields

§

ClickExpectPopup

Click an element expected to open exactly one causally verified popup.

Fields

§target: String
§expected_revision: Option<u64>
§

DoubleClick

Double-click an element by an explicit ref/name/role/text/CSS/ordinal locator.

Fields

§target: String
§expected_revision: Option<u64>
§

Hover

Move the pointer over an element without clicking.

Fields

§target: String
§

Drag

Drag one element to another uniquely resolved element.

Fields

§source: String
§destination: String
§expected_revision: Option<u64>
§

Type

Type text into the focused element, optionally clicking a target first.

Fields

§text: String
§target: Option<String>
§expected_revision: Option<u64>
§

Key

Dispatch one complete key press.

Fields

§expected_revision: Option<u64>
§

KeyDown

Dispatch only a key-down event.

Fields

§expected_revision: Option<u64>
§

KeyUp

Dispatch only a key-up event.

Fields

§expected_revision: Option<u64>
§

Shortcut

Dispatch a modifier shortcut such as Control+A.

Fields

§shortcut: String
§expected_revision: Option<u64>
§

Clear

Clear an editable element.

Fields

§target: String
§expected_revision: Option<u64>
§

Check

Ensure a checkbox or radio is checked.

Fields

§target: String
§expected_revision: Option<u64>
§

Uncheck

Ensure a checkbox is unchecked.

Fields

§target: String
§expected_revision: Option<u64>
§

Select

Select one exact option value.

Fields

§target: String
§value: String
§expected_revision: Option<u64>
§

Upload

Set a bounded list of regular files on one file input.

Fields

§target: String
§files: Vec<PathBuf>
§expected_revision: Option<u64>
§

Screenshot

Capture a PNG screenshot.

Fields

§output: String
§quality: Option<u8>
§scale: f64
§full_page: bool
§target: Option<String>
§

Text

Print the visible page text.

§

Dom

Print the full DOM tree. This is an explicit deep-inspection request.

§

Observe

Print compact accessibility and text context.

Fields

§deep_dom: bool

Include the full DOM tree. This is an explicit deep-inspection request.

§screenshot: bool

Include a PNG screenshot in the structured context.

§form_values: bool

Include bounded, policy-gated form field values.

§semantic_level: Option<String>

Return the versioned semantic observation at the requested level.

§region: Option<String>

Expand one semantic region from the current observation.

§

InspectPage

Capture the bounded task-oriented page inspection contract.

§

FindTarget

Resolve target candidates without acting.

Fields

§input: PathBuf
§

ActAndVerify

Run one guarded semantic action and verify an optional postcondition.

Fields

§input: PathBuf
§predicate: Option<String>
§timeout_ms: u64
§

ExtractStructured

Extract typed records from a fresh semantic region.

Fields

§input: PathBuf
§

RecoverRun

Recover a potentially indeterminate execution conservatively.

Fields

§execution_id: String
§

Scroll

Scroll the page by CSS pixels.

Fields

§dx: f64
§dy: f64
§expected_revision: Option<u64>
§

Wait

Wait for one explicit browser condition until a bounded deadline.

Fields

§condition: String
§timeout_ms: u64
§

Diagnostics

Collect bounded, redacted console and network evidence.

Fields

§duration_ms: u64
§

AcceptDialog

Accept the currently open JavaScript dialog.

§

DismissDialog

Dismiss the currently open JavaScript dialog.

§

DismissConsent

Dismiss a recognized OneTrust/Cookiebot consent wall.

§

Download

Wait for one download into an authorized existing directory.

Fields

§destination: PathBuf
§timeout_ms: u64
§

Targets

List discoverable page targets without changing the active target.

§

NewTarget

Create a page target without selecting it.

Fields

§

SelectTarget

Explicitly select the page target used by subsequent commands.

Fields

§

CloseTarget

Close one page target.

Fields

§

Frames

List frames in the active page target.

§

SelectFrame

Explicitly select the frame used by subsequent commands.

Fields

§

Evaluate

Evaluate JavaScript in the current page.

Fields

§expression: String
§

Cookies

List all browser cookies for the current page.

§

ExportCookies

Export current browser cookies as bounded JSON.

Fields

§output: PathBuf
§

ImportCookies

Import browser cookies from bounded JSON.

Fields

§input: PathBuf
§

Pdf

Save the current page as a PDF.

Fields

§output: String
§background: bool
§

FillForm

Fill multiple form fields from a JSON value.

Fields

§fields: String

JSON array of {target, value} objects.

§expected_revision: Option<u64>

Initial observation revision required before filling.

§

Batch

Execute a bounded typed batch from a JSON array or stdin.

Fields

§input: Option<PathBuf>

JSON file containing the batch steps; omit to read stdin.

§atomic: bool
§mode: BatchMode

Revision policy: fixed, chain, or unguarded.

§expected_revision: Option<u64>

Initial observation revision required by fixed and chain modes.

§

Workflow

Fields

§action: Option<WorkflowAuthoringCommand>

Offline authoring operation. Omit to execute the workflow.

§input: Option<PathBuf>

JSON file containing { "workflow": ..., "inputs": ... }.

§

Task

Validate and compile a browser-free Task Protocol task.

Fields

§

Ir

Inspect or diff browser-free Web IR draft JSON.

Fields

§action: IrCommand
§

WorkflowResume

Reconcile a workflow checkpoint and execute only its safe pending suffix.

Fields

§workflow: PathBuf

JSON file containing the workflow definition.

§checkpoint: PathBuf

JSON file containing a workflow checkpoint.

§inputs: Option<PathBuf>

Optional JSON file containing the workflow input map.

§

ResolveIntent

Resolve a declared intent from JSON or stdin without dispatching it.

Fields

§input: Option<PathBuf>

JSON file containing the versioned intent request; omit to read stdin.

§

ExecuteIntent

Resolve and execute one explicitly selected intent candidate.

Fields

§input: Option<PathBuf>

JSON file containing the versioned execution request; omit to read stdin.

§

Verify

Evaluate a bounded JSON verification predicate.

Fields

§predicate: String

JSON object such as {"urlEquals":"https://example.com"}.

§timeout_ms: u64
§

ReconcileRefs

Reconcile revisioned references against the current observation.

Fields

§from_revision: u64
§hints: Vec<String>

Stable locators tried positionally after backend identity is gone.

§scope: Option<String>

Current revisioned landmark/container ref used to narrow relocation.

§refs: Vec<String>
§

ObserveDelta

Report a bounded delta from the last compact observation.

§

Checkpoint

Export or import a bounded workflow checkpoint.

Fields

§

Snapshot

Create, inspect, diff, or purge redacted local session snapshots.

Fields

§

ClipboardRead

Read text from the system clipboard.

§

ClipboardWrite

Write text to the system clipboard.

Fields

§text: String
§

Tui

Launch the interactive TUI.

Trait Implementations§

Source§

impl Debug for Commands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more