--navigator-captures-video
- CLI
- --navigator-captures-video
Records the navigation session as a video alongside the primary output. On the server, the video is returned as a Link response header. The video omits the time the navigator spends deciding, and cuts a still longer than 1 s to 1 s except while a caption is held or the navigator waits. An .mp4 path writes fragmented MP4 so the file plays while the session runs.
A - path plays the session live above the status line of a terminal that draws images, at up to 15 frames a second, in place of the step screenshots and without writing a file. It takes one URL, and exits the process when stdout is not such a terminal.
Overlays
The video shows the page as the navigator drives it. --navigator-video-shows-captions adds the navigator’s captions, and --navigator-video-shows-pointer draws the pointer.
Example
zshot -f pipeline.png \
--navigator-type "anthropic://YOUR_API_KEY@" \
--navigator-credential email=success@zshot-app.com \
--navigator-credential password=password \
--navigate "Log in and open the pipeline" \
--navigator-captures-video session.webm \
https://zshot-cli.com/example_assets/zrm/{
"url": "https://zshot-cli.com/example_assets/zrm/",
"output_type": "png",
"navigate": "Log in and open the pipeline",
"with_navigator_video": true,
"navigator_type": ["anthropic://YOUR_API_KEY@"],
"navigator_credential": { "email": "success@zshot-app.com", "password": "password" }
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/zrm/","output_type":"png","navigate":"Log in and open the pipeline","with_navigator_video":true,"navigator_type":["anthropic://YOUR_API_KEY@"],"navigator_credential":{"email":"success@zshot-app.com","password":"password"}}' \
-D - -o pipeline.png