Skip to main content
Glama

证据文件管理

browser_evidence
Destructive

Lists, hashes, and cleans up generated evidence files such as screenshots, HAR, and PDFs, sweeping expired or over-quota items while preserving baselines and downloads.

Instructions

Inspect and maintain generated evidence files (screenshots, viewport PNGs, HAR, PDF, visual baselines/diffs, context-menu shots). action=list shows registered files with sha256, size, TTL and age; action=sweep deletes expired or over-quota temporary evidence (baselines/downloads are preserved); action=hash computes a file sha256; action=forget removes a registry entry without deleting the file. Registry path can be overridden with AA_BROWSER_EVIDENCE_FILE.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_evidence"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo(hash/forget) absolute file path
limitNo(list) max entries, default 50
actionNoEvidence operation (default list)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description goes further by scoping the destruction: sweep only deletes expired or over-quota temporary evidence and preserves baselines/downloads, while forget removes only the registry entry and leaves the file on disk. That is exactly the nuance an agent needs before invoking a destructive tool. It does not state whether sweep supports a dry run or what it reports back, which keeps it from a 5.

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 block that states the resource, then walks the four actions in schema order, then adds the configuration escape hatch. Every clause carries information, though the action list runs together as one dense sentence rather than being broken into scannable segments.

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 3-parameter tool with no output schema, the description covers all four action modes, discloses the destructive scope, and names the registry override; it also describes the fields list returns (sha256, size, TTL, age). Remaining gaps are minor, mainly the lack of return-value expectations for sweep and hash and no clarification of what happens when hash or forget is called without a file.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline would be 3, and the description earns the extra point by attaching each parameter to its action (file applies to hash/forget, limit to list) and by documenting a configuration knob not present in the schema, the AA_BROWSER_EVIDENCE_FILE registry override. It stops short of specifying path format expectations or limit bounds beyond what the schema already states.

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 opens with a specific verb pair (inspect/maintain) and an enumerated resource list (screenshots, viewport PNGs, HAR, PDF, baselines/diffs, context-menu shots), then maps each of the four actions to a concrete operation. This makes it clearly distinguishable from artifact-producing siblings like browser_har or browser_pdf, since it manages already-generated files rather than creating them.

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

Usage Guidelines4/5

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

Each action is given an explicit condition: list for registered files, sweep for expired or over-quota temporary evidence, hash for checksum computation, forget for registry removal without file deletion. What is missing is an explicit statement of when to prefer this over re-generating evidence via browser_har/browser_pdf, but the per-action framing gives clear operational context.

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