Standalone CLI for Lexmount WebFetch. It does not depend on the Lexmount SDK; it calls the public WebFetch HTTP API with local x-project-id and x-api-key credentials.
uv tool install --force git+https://github.com/lexmount/webfetch-cli.gitFast path for agents: do not run setup checks before every extraction. Use the target command directly when credentials are already configured.
webfetch-cli extract --url https://www.bilibili.com
webfetch-cli dump-dom --url https://www.bilibili.comRun setup checks only when needed:
webfetch-cli auth status
webfetch-cli auth login --open --connect-base-url https://browser.lexmount.cn
webfetch-cli doctor --json
webfetch-cli capabilities --jsonwebfetch-cli extract --url https://www.bilibili.com
webfetch-cli dump-dom --url https://www.bilibili.comBy default, extract and dump-dom print Markdown optimized for agents:
- readable metadata and content
- extraction/dump quality warnings
- no trace/debug/raw response fields unless explicitly requested
Use --format when you need another shape:
webfetch-cli extract --url https://www.bilibili.com --format md
webfetch-cli extract --url https://www.bilibili.com --format text
webfetch-cli extract --url https://www.bilibili.com --format json
webfetch-cli extract --url https://www.bilibili.com --format json-fulljson-full preserves the original API response. Use it for debugging or when you
explicitly request heavy fields:
webfetch-cli extract --url https://example.com --include-trace --format json-full
webfetch-cli extract --url https://example.com --include-raw-dom --format json-fullDOM dump supports engine hints and script/style filtering:
webfetch-cli dump-dom --url https://example.com --engine lightmount_dcl
webfetch-cli dump-dom --url https://example.com --filter-scripts-styles