Skip to content

Utility Commands

Add a descriptive comment to the automation logs.

Parameter Type Required Description
text string Comment text

Save the current page as a PDF file.

Parameter Type Required Default Description
path string Output file path

Take a screenshot of the page.

Parameter Type Required Default Description
path string Output file path
fullPage boolean true Capture the full page

Set the browser viewport size.

Parameter Type Required Default Description
width number Viewport width in pixels
height number Viewport height in pixels

Set the browser’s geographic location.

Parameter Type Required Description
latitude number Latitude
longitude number Longitude

Simulate the browser being offline.

Parameter Type Required Default Description
offline boolean true Set offline status

Clear all cookies for the current site.

No parameters.

Run JavaScript in the browser page context.

Parameter Type Required Description
script string JavaScript code to execute
output_variable string Variable to store the return value

Example:

script: return document.title;
output_variable: page_title

Run a Deno script on the server side (full access to file system, network, etc.).

Parameter Type Required Description
script string Deno script code

⚠️ Note: run_script runs on the server side with full system access. Use execute_script for browser-side JavaScript.

Switch to a specific browser tab.

Parameter Type Required Default Description
index number 0 Tab index (0-based)
fallback_url string URL to open if tab doesn’t exist

Manipulate an image file.

Parameter Type Required Description
input_path string Input image path
output_path string Output image path
action string Action: resize, crop, convert, compress
options object Action-specific options
Action Options
resize width, height
crop x, y, width, height
convert format (jpeg, png), quality (1-100)
compress quality (1-100)

Perform file system operations.

Parameter Type Required Description
action string Action: move, rename, copy, delete, zip, unzip
source string Source file/directory path
destination string Destination path

Run an accessibility audit on the page.

Parameter Type Required Default Description
scope string html CSS selector for audit scope
rules array Specific rules to run
output_variable string Variable to store results
output_filename string File path for results

Detect technologies used on the page.

Parameter Type Required Description
output_variable string Variable to store detected technologies

Check all links on the page for broken URLs.

Parameter Type Required Default Description
selector string a[href] Selector for links to check
concurrency number 5 Parallel checks
timeout number 10000 Timeout per link (ms)
output_filename string File path for results