Skip to main content
Glama
AndrewEstopinan

Bright Data MCP Server

Replay a recorded browser session (HAR) with CSRF/token auto-correlation

replay_har

Replay HAR files from browser DevTools, automatically refreshing dynamic values like CSRF tokens and nonces to ensure stale login flows and form submissions work correctly. Preview with dry run or skip static assets.

Instructions

Replays an HTTP Archive (.har) file exported from browser DevTools. Automatically detects dynamic values (CSRF tokens, nonces, hidden form fields, JSON token fields) in responses and substitutes fresh values into subsequent requests — so login flows, form submissions, and signed API calls work correctly even though the recorded values are stale. Static assets (images, CSS, JS) are skipped by default. Use 'substitutions' for values that never appear in responses (credentials, API keys). Use 'dry_run' to preview what would be sent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoPreview what would be sent without making any requests.
har_pathYesAbsolute path to the exported .har file.
skip_assetsNoSkip image, font, CSS, and JS requests (default true).
substitutionsNoStatic value replacements applied to every request before sending. Use for credentials and anything that never appears in a response body. e.g. { "recorded_password": "real_password" }
Behavior4/5

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

With no annotations provided, the description carries the burden of disclosing behavior. It reveals that dynamic values are detected and substituted automatically, static assets are skipped by default, and dry_run prevents actual requests. This covers the most important behavioral traits, though it doesn't explicitly state that live requests will be made during a real run.

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?

The description is three sentences, front-loaded with the primary action, followed by a concise explanation of the auto-correlation mechanism and then parameter usage notes. Every sentence earns its place with no redundancy or fluff.

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?

Given the tool's complexity (4 params, nested object, no output schema), the description covers the essential behavioral and usage aspects: the purpose, the auto-substitution mechanism, default asset skipping, and parameter-specific roles. It doesn't cover failure modes or redirects, but the core functionality is well-specified.

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?

The schema descriptions already cover all parameters (100% coverage), so baseline is 3. The description adds practical guidance beyond the schema: 'substitutions' for credentials/API keys, 'dry_run' for previewing. This enhances semantic understanding beyond the parameter descriptions alone.

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 states a specific verb and resource: 'Replays an HTTP Archive (.har) file exported from browser DevTools.' It also explains the core value-add of auto-correlating dynamic values, clearly distinguishing it from the scraping-focused sibling tools. The title reinforces the purpose with 'CSRF/token auto-correlation.'

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?

The description provides clear usage context: it is intended for login flows, form submissions, and signed API calls, and explains when to use 'substitutions' (for values never in responses) and 'dry_run' (to preview). It doesn't explicitly name alternative tools, but no sibling tool overlaps with this replay functionality, so the context is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AndrewEstopinan/browser-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server