Skip to main content
Glama

一键保存

capture_save

Saves all captured browser DevTools content into a directory: session, console, network HAR/CSV, DOM, metrics, storage, screenshots, offline HTML report, summary, and manifest for later analysis.

Instructions

把抓到的全部内容落盘成一个目录:session.json、console.json/csv、network.har、network.csv、metrics.json、storage.json、dom.html、截图、离线 HTML 报告 report.html、summary.md 与 manifest.json。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirNo直接指定输出目录(绝对路径);缺省用 captures/<会话名>
nameNo输出目录名,缺省用会话 ID
maxRowsNoHTML 报告里每表最多渲染行数,默认 500
rootDirNo输出根目录,缺省 <cwd>/captures
includeDomNo是否抓取 DOM 快照,默认 true
includeStorageNo是否抓取存储数据,默认 true
includeSummaryNo是否返回 Markdown 摘要文本,默认 true
includeScreenshotNo是否抓取截图,默认 true
includePerformanceNo是否抓取性能指标,默认 true

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden, and it does disclose concrete behavioral output: the exact set of files written to a directory, including an offline HTML report. However, it omits important traits such as whether an existing directory is overwritten, whether writes are additive, and any permission or failure behavior for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence states the action first, then enumerates outputs. It is efficient and waste-free, though the long artifact list is somewhat dense and could be trimmed to the most distinguishing files.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-required-parameter tool with no output schema, the description usefully enumerates what gets written to disk, which compensates for the missing return documentation. It falls short only on behavioral caveats (overwrite handling, session requirements) that an agent would want before invoking a write operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all nine parameters (dir, name, maxRows, rootDir, and the five include* toggles) are already fully documented in the schema. The description adds no parameter-level meaning beyond what the schema provides, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs a specific action (把抓到的全部内容落盘, persisting captured content to disk) with an exhaustive enumeration of the resulting artifacts (session.json, network.har, dom.html, report.html, manifest.json, etc.). This makes it unambiguous against siblings like capture_stop (which halts), capture_list_saved (which lists), or network_list (which reads), so an agent can tell what this produces without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to invoke this versus alternatives such as capture_stop or capture_list_saved, nor any prerequisite (e.g. an active session, completed capture). Usage is only weakly implied by '抓到的内容' (the captured content). No exclusions or routing guidance are provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.