You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 25, 2026. It is now read-only.
动机
当前
page命令按视口高度分页,每次只返回一页内容。对于使用了懒加载(loading="lazy"、Intersection Observer、content-visibility: auto、虚拟滚动等)的现代网页,视口外的内容可能尚未渲染,导致快照中缺失这些节点。AI agent 在需要全量理解页面内容时,只能手动循环
page --next逐页翻取,缺少一步到位的方式。方案
为
page命令新增--allflag:CLI 侧编排(不新增 extension action)
复用已有的
SCROLL+GET_PAGE_FRESH,由 CLI 驱动循环:scroll_height / viewport_height算出总页数SCROLL到对应偏移量GET_PAGE_FRESH取新快照,收集节点ViewFilter,直接输出全部内容这符合项目「浏览器薄、CLI 厚」的架构原则——extension 侧无需改动。
约束与细节
--all与--next/--prev/-p互斥,同时传入应报错Scrolling 3/12...),不影响 stdout 结构化输出--all配合--json时可考虑默认 compact 模式total_pages: 1, current_page: 1,保持与普通page输出结构一致,下游无需额外适配不采用的替代方案
fullpage/capture)— 与page功能高度重叠,增加概念负担scrollTo(bottom)后单次抓取 — 中间未经过视口的懒加载内容仍会缺失依赖
pagepagination #10 (SCROLLaction 支持)