Scroll
Scroll the current tab or a specific element.
curl -X POST http://localhost:9867/action \ -H "Content-Type: application/json" \ -d '{"kind":"scroll","scrollY":800}'# Response: {"success":true,"result":{"success":true}}
Response
# CLI Alternative (human-readable by default)
pinchtab scroll down
# Output: OK
pinchtab scroll down --snap # scroll and output snapshot
pinchtab scroll 800 --snap-diff # scroll and output snapshot diff
pinchtab scroll 800 --json # Full JSON response Notes:
- use
--snapto output an interactive snapshot after scrolling - use
--snap-diffto output only the changes from the previous snapshot - the top-level CLI also accepts a pixel value such as
pinchtab scroll 800 - the raw API uses
scrollYandscrollXfor page scrolling - the raw API can also target an element with
reforselector - selector lookup is limited to the current frame scope; the default scope is
main - use
/frameorpinchtab framebefore selector-based iframe scrolling