Skip to main content
Glama

导出 HAR

browser_har

Export captured network traffic as HAR 1.2 without response bodies, redacting authentication headers and credential-like URL parameters by default; enable includeSensitive only when needed.

Instructions

Export captured network traffic as HAR 1.2 (no response bodies). Authentication headers and credential-like URL parameters are redacted by default; pass includeSensitive:true only when needed.

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_har"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoOutput file path inside the browser export dirs (~/.aabrowser/downloads, har, screenshots or AA_BROWSER_EXPORT_DIR; default ~/.aabrowser/har/aa-<timestamp>.har). Symlinks and paths outside those dirs are rejected.
tabIdNoTab id (default: active tab)
includeSensitiveNoInclude authentication headers and credential-like URL parameters (default false; handle the exported file as sensitive)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare the generic profile (readOnlyHint=false, openWorldHint=true, idempotent=false, destructive=false); the description adds real behavioral context beyond that: HAR 1.2 format, response bodies excluded, and auth headers/credential-like URL params redacted by default. It does not mention overwrite behavior when the export path already exists or what happens if no traffic was captured.

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

Conciseness5/5

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

Two sentences, zero filler, with the artifact format and its main limitation front-loaded before the safety caveat. Every clause carries information an agent needs.

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, no-output-schema export tool with annotations present, the description covers format, content scope, and the sensitive-data tradeoff. Remaining gaps (overwrite semantics, behavior when no requests were captured, output confirmation) are minor.

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 description coverage is 100%, so the baseline is 3, and the description reinforces the key semantic of includeSensitive (what is included and the safe default). It does not elaborate on path or tabId behavior beyond the schema, so it stays close to the baseline rather than adding substantially new meaning.

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

Purpose4/5

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

States a specific verb and resource ('Export captured network traffic as HAR 1.2') plus the notable content limit ('no response bodies'), so the agent knows exactly what artifact it gets. It does not name or contrast with siblings such as browser_network_requests or browser_network_detail, so it stops short of a 5.

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

Usage Guidelines3/5

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

The clause 'pass includeSensitive:true only when needed' gives a conditional usage rule for the risky parameter, which implies the default safe path. However, there is no explicit when-to-use versus alternatives guidance (e.g., use browser_network_requests for inspection, this tool for a file artifact), so usage is only implied.

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