# Lexmount Webfetch

> Use Lexmount WebFetch through webfetch-cli for lightweight public page extraction and DOM dump tasks. Prefer this skill when the task needs structured extraction or rendered HTML capture without creating a live remote browser session.

- Skill: `lexmount/lexmount-webfetch-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add lexmount/lexmount-webfetch-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lexmount/lexmount-webfetch-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: lexmount (https://skillmd.com/u/lexmount)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/lexmount/lexmount-webfetch-2

---


# Lexmount WebFetch CLI

Use `webfetch-cli` for Lexmount WebFetch extraction and DOM dump tasks.

## Fast Path

Do not run setup checks before every extraction. For ordinary fetch tasks, call the target command directly:

```bash
webfetch-cli extract --url <url>
webfetch-cli dump-dom --url <url>
```

Run checks only when they change the next action:

- First use in a new environment: `webfetch-cli --version` and `webfetch-cli auth status`.
- Missing credentials: `webfetch-cli auth login --open --connect-base-url https://browser.lexmount.cn`, then `webfetch-cli doctor --json`.
- Unexpected command/API failure: `webfetch-cli doctor --json`.
- Unsure installed capability or output shape: `webfetch-cli capabilities --json`.
- Skill file missing or stale: `webfetch-cli skill status`, then `webfetch-cli skill install --force` only if needed.

Never paste API keys into chat.

## Extract

```bash
webfetch-cli extract --url https://example.com
```

Default output is Markdown optimized for agents. It includes page metadata,
extraction quality warnings, and the extracted main text.

Use this for normal structured extraction. The CLI sends:

```json
{"extract":{"url":"https://example.com"}}
```

When debugging, request the full raw API response explicitly:

```bash
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
```

Use `--format json` for compact structured data and `--format text` for plain text.

## Dump DOM

```bash
webfetch-cli dump-dom --url https://example.com
```

Default output is Markdown with DOM metadata, dump quality warnings, and captured
HTML. Debug fields are hidden unless `--format json-full` is used.

Use this when extraction needs rendered HTML or a reusable DOM snapshot. The CLI sends:

```json
{"url":"https://example.com"}
```

Use optional engine and cleanup hints when needed:

```bash
webfetch-cli dump-dom --url https://example.com --engine lightmount_dcl
webfetch-cli dump-dom --url https://example.com --filter-scripts-styles
```

