From 53fa6f95e7f902febc93efb01557d6a34956b3eb Mon Sep 17 00:00:00 2001 From: BB-fat <1056871944@qq.com> Date: Wed, 12 Aug 2026 11:32:50 +0000 Subject: [PATCH] docs(skill): list bsk console and bsk network in SKILL.md --- crates/bsk-cli/skill/SKILL.md | 9 +++++++++ skill/SKILL.md | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/crates/bsk-cli/skill/SKILL.md b/crates/bsk-cli/skill/SKILL.md index b88fffa..d0f3e92 100644 --- a/crates/bsk-cli/skill/SKILL.md +++ b/crates/bsk-cli/skill/SKILL.md @@ -175,6 +175,15 @@ bsk emulate --session --off | `bsk get-html` | Raw HTML dump after snapshot is insufficient (high token cost) | | `bsk screenshot` | PNG capture after snapshot is insufficient: full visible tab, or `--ref @eN` to crop to one element (`--out` path optional) | +### Console & network debugging (read-only; require `--session`) + +| Command | Summary | +|---------|---------| +| `bsk console` | Buffered page console messages, JS exceptions, and browser log entries (`--include-stack` for stack traces) | +| `bsk network` | Buffered network responses (status, method, URL, MIME/resource type) and failures (`net::ERR_*` reason) | + +Both capture from the moment the tab is attached and read a bounded per-tab buffer: `--since ` pages from a cursor (`next_since` in the result), `--limit` (default 50, max 200), `--max-text-chars` (default 1000, max 4096), `--tab-id` to target a non-active tab. Both are strictly read-only — they never intercept or modify traffic, and request/response headers, bodies, and timings are not captured. + ### Navigation | Command | Summary | diff --git a/skill/SKILL.md b/skill/SKILL.md index b88fffa..d0f3e92 100644 --- a/skill/SKILL.md +++ b/skill/SKILL.md @@ -175,6 +175,15 @@ bsk emulate --session --off | `bsk get-html` | Raw HTML dump after snapshot is insufficient (high token cost) | | `bsk screenshot` | PNG capture after snapshot is insufficient: full visible tab, or `--ref @eN` to crop to one element (`--out` path optional) | +### Console & network debugging (read-only; require `--session`) + +| Command | Summary | +|---------|---------| +| `bsk console` | Buffered page console messages, JS exceptions, and browser log entries (`--include-stack` for stack traces) | +| `bsk network` | Buffered network responses (status, method, URL, MIME/resource type) and failures (`net::ERR_*` reason) | + +Both capture from the moment the tab is attached and read a bounded per-tab buffer: `--since ` pages from a cursor (`next_since` in the result), `--limit` (default 50, max 200), `--max-text-chars` (default 1000, max 4096), `--tab-id` to target a non-active tab. Both are strictly read-only — they never intercept or modify traffic, and request/response headers, bodies, and timings are not captured. + ### Navigation | Command | Summary |