← 返回 Skills 市场
dougzl

Browser Network Inspector

作者 Dougzl · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
104
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install browser-network-inspector
功能描述
Browser-side request inspection and reporting for user-authorized web debugging. Use when you want one skill to observe page fetch/XHR/WebSocket activity, in...
使用说明 (SKILL.md)

Browser Network Inspector

A single-skill browser debugging capture tool for inspecting page requests and turning them into readable reports.

Use this when you want to:

  • see which APIs a page or button triggers
  • inspect login, registration, or form-submit flows
  • capture page-level fetch / XMLHttpRequest / basic WebSocket activity
  • export a clean JSON + Markdown report after browser actions

This skill is packaged as one workflow. Internally it uses a local browser runtime, but the user-facing experience should be treated as one skill from start to finish.

Use this skill for

  • Debugging requests from a web page you are authorized to inspect
  • Understanding login / registration / submit flows at the page level
  • Seeing which APIs a button click or form submit triggers
  • Capturing and summarizing fetch / XMLHttpRequest activity from the current page
  • Producing a redacted request summary for later analysis

Do not use this skill for

  • Extracting or replaying third-party login sessions
  • Capturing full system traffic
  • Pulling access tokens, cookies, session secrets, or passwords for reuse
  • Bypassing captchas, auth, or platform protections

About the capture model

This skill provides browser-side request capture, not raw packet sniffing.

It is designed to help with:

  • page request inspection
  • form submission debugging
  • login / registration flow analysis
  • browser API tracing around user actions

It can observe:

  • page-level fetch
  • page-level XMLHttpRequest
  • basic WebSocket lifecycle + message events

It does not try to replace system/network tools such as:

  • Wireshark
  • mitmproxy
  • Fiddler

It also does not inspect arbitrary native processes or full machine traffic.

In short: this skill is best described as a browser debugging capture and reporting tool.

Runtime expectation

  • This skill expects a local agent-browser CLI runtime to be installed on the machine.
  • The helper script scripts/capture-session.js auto-detects the local binary and drives the browser runtime for you.
  • If agent-browser is missing, install it first before using this skill.

Workflow

  1. Open the target page with the browser runtime managed by this skill.
  2. Inject the network collector into the page:
$collector = Get-Content "$env:USERPROFILE\.openclaw\workspace\skills\browser-network-inspector\scripts\collect-network.js" -Raw
agent-browser eval $collector
  1. Optional: configure include/exclude host filters before the flow:
agent-browser eval "window.__bniSetConfig({ includeHosts: ['example.com'], excludeHosts: ['ads.example.com'], captureWebSocket: true })"
  1. Perform the desired browser actions (open, click, fill, submit, wait).
  2. Read back the captured records:
agent-browser eval "JSON.stringify(window.__bniExport ? window.__bniExport() : [])"
  1. Save the JSON output to a local file.
  2. Run the summarizer:
node "$env:USERPROFILE\.openclaw\workspace\skills\browser-network-inspector\scripts\summarize-network.js" \x3Cinput.json> [output.md]
  1. Or use the bundled one-shot helper after you finish the browser actions:
node "$env:USERPROFILE/.openclaw/workspace/skills/browser-network-inspector/scripts/capture-session.js" --json-out ".capture/session.json" --md-out ".capture/session.md" --include-hosts "example.com,api.example.com"

v2 additions

  • Host include/exclude filtering
  • Basic WebSocket event logging
  • One-shot export helper: scripts/capture-session.js
  • Improved summary report with source breakdown

Polished workflow helpers

Additional JS-only helpers included:

  • scripts/clear-session.js — clear the in-page capture buffer
  • scripts/capture-and-report.js — create a timestamped report directory and save both JSON + Markdown
  • Export helpers sanitize non-JSON wrapper output before writing capture files

Example:

node "$env:USERPROFILE/.openclaw/workspace/skills/browser-network-inspector/scripts/clear-session.js"
node "$env:USERPROFILE/.openclaw/workspace/skills/browser-network-inspector/scripts/capture-and-report.js" --include-hosts "example.com,api.example.com" --label login-flow --open-report

Notes

  • This captures page-level JS network activity. It is not a full packet sniffer.
  • fetch and XMLHttpRequest are supported in v1.
  • v2 adds basic WebSocket event logging and a Node.js export helper.
  • Request and response bodies are truncated and redacted before export.
  • If a site uses service workers, native browser internals, or non-page network paths, results may be incomplete.
  • Keep helper scripts in JavaScript or Python only for this environment.
  • The bundled export helper is Node.js-based, auto-detects the local browser runtime executable, and injects the collector in chunks to avoid Windows command-length limits.

Redaction defaults

The collector and summarizer should redact or suppress obvious sensitive values such as:

  • authorization
  • cookie
  • set-cookie
  • password
  • token
  • accessToken
  • refreshToken
  • session
  • csrf

Output expectation

The summary should tell you:

  • how many requests were captured
  • which endpoints were hit
  • which requests failed
  • rough timing and status distribution
  • likely key requests in the user flow

If the user wants raw logs, save them locally first and avoid echoing full sensitive payloads into chat.

安全使用建议
This skill appears coherent for browser-level debugging. Before installing: (1) Ensure the 'agent-browser' binary you have is from a trusted source — the scripts will run it and use it to eval JS into pages. (2) Only use the skill on sites you are authorized to inspect — the collector injects code (including eval) into pages and can capture request/response data. (3) Review the collector for any additional header/body fields you consider sensitive — the redaction list is conservative but not guaranteed to catch every secret pattern. (4) Avoid running this against pages containing third-party credentials, payment flows, or other high-risk secrets unless you accept the risk of accidental capture. If you need higher assurance, run captures in an isolated browser/profile or with a controlled test account.
功能分析
Type: OpenClaw Skill Name: browser-network-inspector Version: 1.0.1 The browser-network-inspector skill is a legitimate debugging tool designed to capture and report page-level network activity (fetch, XHR, WebSockets). It includes proactive security features, such as a redaction engine in `scripts/collect-network.js` that masks sensitive keys like 'authorization', 'password', and 'token' before storage. The scripts (`capture-session.js`, `capture-and-report.js`) facilitate local data collection and report generation within the user's workspace, using standard process execution to interface with the required `agent-browser` runtime without any evidence of data exfiltration, persistence, or malicious intent.
能力评估
Purpose & Capability
Name/description match the actual behavior: scripts inject a browser collector that instruments fetch/XHR/WebSocket, redact common sensitive fields, export JSON, and summarize into Markdown. The only external runtime required is a local 'agent-browser' CLI, which is referenced consistently in SKILL.md and scripts.
Instruction Scope
Runtime instructions require injecting the provided collector into the target page via agent-browser eval and then exporting logs. This matches the stated purpose, but the collector uses eval chunking to load itself into pages and the Node helpers execute local binaries (agent-browser) and write files under the user's workspace. Redaction is implemented but may not catch every sensitive pattern, so use only on pages you are authorized to inspect.
Install Mechanism
No install spec — instruction-only with bundled JS helpers. Nothing is downloaded from the network and no archive extraction occurs. The scripts expect an existing agent-browser binary but do not attempt to fetch or install it.
Credentials
The skill requires no environment variables or credentials. It reads typical local paths (HOME/USERPROFILE/APPDATA) to locate agent-browser and writes report files into the user's .openclaw workspace — behavior consistent with the stated purpose.
Persistence & Privilege
always:false and user-invocable. The skill only writes reports and temporary files under the workspace and does not modify other skills or system-wide settings. It does execute a local binary (agent-browser) as part of normal operation.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install browser-network-inspector
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /browser-network-inspector 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Polished release copy: clearer positioning as a browser debugging capture and reporting tool, with improved public-facing capability and limitation notes.
v1.0.0
Initial public release: pure-JS browser request inspector with fetch/XHR/WebSocket capture, reporting helpers, and packet-capture behavior notes.
元数据
Slug browser-network-inspector
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Browser Network Inspector 是什么?

Browser-side request inspection and reporting for user-authorized web debugging. Use when you want one skill to observe page fetch/XHR/WebSocket activity, in... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 104 次。

如何安装 Browser Network Inspector?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install browser-network-inspector」即可一键安装,无需额外配置。

Browser Network Inspector 是免费的吗?

是的,Browser Network Inspector 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Browser Network Inspector 支持哪些平台?

Browser Network Inspector 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Browser Network Inspector?

由 Dougzl(@dougzl)开发并维护,当前版本 v1.0.1。

💬 留言讨论