Data and Files
Data is task information the navigator reads and fills by name. Files are what it attaches to upload fields. References are documents it consults while it works. Scripts are JavaScript functions it runs in the page.
Data
--navigator-data gives one value, and --navigator-data-json an object of them. The navigator sees every name and value in every prompt, and picks what the page asks for from it: “35–44” for an age of 37, or “California” for CA.
FILL takes a value exactly as given with data:NAME, and a form field labelled with the name is filled from it directly. A decision model such as typesafe is offered each value as a choice, so it can fill a form without a writer. An --llm-format-model formatter is given the data too, beside the account of the navigation.
Data is not secret: it reaches the model’s provider and appears in reproductions. Use a credential for anything the model must not see.
In a JSON object, nested names join with dots: {"address": {"city": "Leeds"}} is address.city, and an array’s items are numbered from 0. Numbers and booleans become text. null removes a name an earlier object set. Each object overrides the ones before it, every --navigator-data overrides them all, and a later --navigator-data overrides an earlier one. The names and values together hold at most 16,000 characters.
A server takes navigator_data and navigator_data_json from each request, and refuses both flags at startup. Over HTTP, navigator_data_json is an array of objects and URLs, sent by POST; the server reads no local file.
Files
--navigator-file offers a file by name. The navigator sees the name, never the path or the file’s contents. When the name matches a field’s label the file is attached directly; otherwise the navigator infers which file belongs in which field.
A page that opens the file chooser from its own button, with the input hidden, reaches the navigator with the accepted types, and the navigator attaches a provided file. With no file provided, the chooser is cancelled and the navigator is told the page asked for one.
The first attach records the file’s SHA-256. A later attach in the same run that finds different bytes fails with changed since first use and exits the process.
Size Limit
--navigator-file-size-limit applies to every source. A path is measured at startup and again at each attach. A data URL is measured when the request is built, after its own 10 MB cap. A URL whose Content-Length exceeds the limit is refused before a byte is read; otherwise the body streams to disk and is discarded once it passes the limit.
URL Sources
A URL is fetched with a plain GET and ZShot’s user agent, through the same IP filter as the render, following redirects. The fetch carries no cookies and no page session, so a file behind the page’s login belongs on disk or in a data URL. The uploaded file takes the server’s Content-Disposition name, else the URL’s last path segment. A failed fetch exits the process.
Server
navigator_file is a name-to-source map of data URLs and http(s) URLs; the server reads no local files, and refuses the flag at startup. A data URL is capped at 10 MB and uploads as its name plus an extension for its MIME type. A failed URL fetch answers 502 with the file name and the failure class.
References
--navigator-reference gives the navigator documents to consult with READ_REFERENCE and never navigate to. The navigator can also save in-scope links on the page with ADD_REFERENCE, up to 20 references in total.
Every initial reference is read when the session starts, and a saved link is read when added. Without TITLE=, the title comes from the page or PDF title, the first # heading, or the file name. Text past 60,000 characters is truncated, and each URL fetch takes at most 30 seconds and 64 MiB. A reference that fails to read or that the IP filter, an adblock rule, robots.txt, --navigator-deny-url or a noai directive rejects is skipped with a warning, and the render continues.
Over HTTP, navigator_reference takes http(s) URLs and data: URIs as strings or {"title", "source"} objects; the server reads no local files and refuses the flag at startup.
Scripts
--navigator-script gives the navigator JavaScript to run on the current page with RUN_SCRIPT. A script is the body of an async function, and the value it returns comes back to the navigator as JSON.
The navigator is shown each script’s number and title, and chooses one by number. The title is all it knows of a script, so state what the script returns: Order table as JSON rows serves it better than orders.js. Without TITLE=, the title is the file name.
// order-rows.js: the order table as one object per row.
const rows = [...document.querySelectorAll("table.orders tbody tr")];
return rows.map((row) => ({
order: row.cells[0].textContent.trim(),
total: Number(row.cells[3].textContent.replace(/[^0-9.]/g, "")),
}));zshot -t goal \
--navigator-type "anthropic://YOUR_API_KEY@" \
--navigator-script "Order table as JSON rows=order-rows.js" \
--navigate "Open the orders page and report the largest order" \
https://shop.exampleA script runs in the page’s own JavaScript world, with access to its variables and functions; returned promises are awaited. Running one costs no step, up to 4 per step.
| The script | The navigator is shown |
|---|---|
| returns a value | the value as JSON |
| returns nothing | The script returned nothing. |
| throws, or returns a value that cannot be serialized as JSON | The script failed: and the error |
| runs on a page whose Content-Security-Policy sandbox allows no script | The script failed: this page runs no script |
The result is shown for the step that ran the script; the navigator keeps what it needs with NOTE. Every source is read when the session starts, at most 4 MiB each, and one that fails to read is skipped with a warning. A result past 60,000 characters is truncated, so a script that returns a summary serves the navigator better than one that returns everything.
axe-audit.js runs the axe-core accessibility rules and returns each violation’s rule, impact and failing elements. Audit accessibility with a script runs it.
Over HTTP, navigator_script takes http(s) URLs and data: URIs as strings or {"title", "source"} objects; the server reads no local files and refuses the flag at startup. A server started with --request-scripts forbid refuses every request that carries a script.