--navigator-reference
- CLI
- --navigator-reference
Gives the navigator a reference document to consult, such as a policy, a rate table or a floor plan. The navigator reads it by number and never navigates to it. Repeatable, up to 20.
| Source | Read as |
|---|---|
| A Markdown or text file | Its text |
| An HTML file or page | The rendered page as Markdown |
| A PDF | Its text, opened with --pdf-password when locked |
| A PNG, JPEG, GIF or WebP image | The image, when the navigator supports vision |
data:<mime>;base64,… | By its MIME type, as above |
Every reference is loaded when the session starts; entries rejected by a URL rule or that fail to load are skipped with a warning. The navigator sees each reference’s number, title, and kind, and can read up to 4 per step. Text is truncated at 60,000 characters, and URL fetches are capped at 30 seconds and 64 MiB. In server mode, pass http(s) URLs or data: URIs per request in navigator_reference as strings or {"title", "source"} objects; the CLI flag is rejected at server startup.
Example
zshot -f cart.png \
--navigator-type "anthropic://YOUR_API_KEY@" \
--navigator-reference "Shopping List=./shopping-list.pdf" \
--navigator-reference https://zshot-cli.com/example_assets/zemu/why-zemu.html \
--navigate "Add the items on the shopping list to the cart" \
https://zshot-cli.com/example_assets/zemu/{
"url": "https://zshot-cli.com/example_assets/zemu/",
"output_type": "png",
"navigate": "Add the items on the shopping list to the cart",
"navigator_type": ["anthropic://YOUR_API_KEY@"],
"navigator_reference": [
{ "title": "Shopping List", "source": "data:application/pdf;base64,JVBERi0..." },
"https://zshot-cli.com/example_assets/zemu/why-zemu.html"
]
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/zemu/","output_type":"png","navigate":"Add the items on the shopping list to the cart","navigator_type":["anthropic://YOUR_API_KEY@"],"navigator_reference":[{"title":"Shopping List","source":"data:application/pdf;base64,JVBERi0..."},"https://zshot-cli.com/example_assets/zemu/why-zemu.html"]}' \
-o cart.png