Skip to content

lexmount/webfetch-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webfetch-cli

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.

Install

uv tool install --force git+https://github.com/lexmount/webfetch-cli.git

Connect

Fast 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.com

Run 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 --json

Use

webfetch-cli extract --url https://www.bilibili.com
webfetch-cli dump-dom --url https://www.bilibili.com

By 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-full

json-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-full

DOM 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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages