Browser commands

Usage and options for commands that control the browser.

Syntax · Options · ExamplesEnglish

Basic browser workflow

Terminal
orke browser tab.list --json
orke browser page.snapshot --page "PAGE_ID" --json
orke browser page.run --page "PAGE_ID" --goal "Open the user guide on this page" --json

Start an interaction goal with page.run, which follows the decision model settings. Read the returned observation and handoff before choosing the next action.

Get element references from the latest observation

Get references such as e7 from the latest snapshot or current run observation on the same page. Observe again after navigation or a document change.

5 convenience aliases

AliasCanonical method
goto <URL>page.navigate
tab listtab.list
tab createtab.create
tab switchtab.activate
tab closetab.close

Command list

41 commands · Select one to open its details.

orke browser tab.list

List pages available in this workspace and the active page.

↗
orke browser tab.create

Create a page in the selected profile; omit url for a blank page.

↗
orke browser tab.activate

Activate the target page.

↗
orke browser tab.close

Close the target page; agent close does not ask beforeunload.

↗
orke browser page.navigate

Navigate the page to the given URL.

↗
orke browser page.back

Navigate back in page history.

↗
orke browser page.forward

Navigate forward in page history.

↗
orke browser page.stop

Stop loading the page.

↗
orke browser page.reload

Reload the page; bypassCache true bypasses cache.

↗
orke browser page.snapshot

Read page state and references for interactive elements.

↗
orke browser page.inspect

Inspect value, state and text through an element reference from snapshot.

↗
orke browser page.run

Run a browser decision loop with a goal and supplied values; inspect completion and stop reasons.

↗
orke browser page.screenshot

Capture a PNG or JPEG image of the page.

↗
orke browser page.console

Read page console records after a cursor.

↗
orke browser page.network

Read observed page network records after a cursor.

↗
orke browser page.click

Click the referenced element through trusted input.

↗
orke browser page.dblclick

Double-click the referenced element.

↗
orke browser page.hover

Move the pointer over the referenced element.

↗
orke browser page.focus

Focus the referenced element.

↗
orke browser page.fill

Replace the referenced input's value with text; empty text clears it.

↗
orke browser page.type

Type text into the referenced element; newlines selects how line breaks are delivered.

↗
orke browser page.select

Select option values; repeat values for multiple selections.

↗
orke browser page.check

Set a checkbox or radio selection state.

↗
orke browser page.keypress

Press one key with optional modifier keys.

↗
orke browser page.scroll

Scroll the page by horizontal and vertical pixel deltas.

↗
orke browser page.upload

Supply workspace files to a file input or chooser trigger.

↗
orke browser page.wait

Wait until one text, URL, element or load condition is satisfied.

↗
orke browser page.find

Find text in the page or move to the next match.

↗
orke browser page.stopFind

Stop finding text and apply the selected match-selection action.

↗
orke browser page.zoom

Set the page zoom factor.

↗
orke browser page.viewport

Set the page viewport dimensions or reset to its default size.

↗
orke browser page.evaluate

Evaluate a JavaScript expression only on a connection with development capability.

↗
orke browser download.list

List download state in this workspace.

↗
orke browser download.cancel

Cancel the selected download.

↗
orke browser profile.list

List available browser profiles.

↗
orke browser profile.create

Create a browser profile with a display name.

↗
orke browser profile.select

Select a browser profile for the target page.

↗
orke browser annotation.pick

Start annotation picking so a person can select an element.

↗
orke browser annotation.cancel

Cancel the active annotation picker.

↗
orke browser page.dialog

Read the current JavaScript or beforeunload dialog and its ID.

↗
orke browser page.dialogRespond

Accept, dismiss or answer a prompt using the observed dialog ID.

↗

Search documentation

The page could not be displayed. Reload ×