Skip to main content
Glama

web_capture_live_session

Capture live dynamic web sessions by recording HTTP/XHR/Fetch traffic as HAR 1.2, WebSocket frames, cookies, and storage state, then generate an offline replay server for analysis.

Instructions

Captures live dynamic web sessions, intercepts HTTP/XHR/Fetch traffic into strict HAR 1.2 format, records WebSocket frame streams, snapshots cookies/localStorage state, and generates a self-contained offline WebSocket replay server.

Input Schema

NameRequiredDescriptionDefault
urlYesTarget website URL to capture (e.g. https://example.com)
saveHarNoWhether to compile and save strict HAR 1.2 archive (default: true)
outputDirNoLocal directory to save session artifacts (default: ./live_session)
injectStateNoOptional cookies, localStorage, and sessionStorage to inject during capture
interactiveMockNoGenerate offline WebSocket replayer and mock bridge (default: true)
recordWebSocketsNoWhether to record WebSocket connections and frame streams (default: true)
maxNetworkEntriesNoMaximum number of HTTP network transactions to record (default: 100)
sessionDurationMsNoDuration to record live session in milliseconds (default: 5000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.13.0

TDQS

B3.2/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 behavioral burden. It discloses useful facts (HAR 1.2 output, WebSocket replay server generation, live recording), but stays silent on side effects such as writing artifacts to disk, launching a browser, capture latency/cost, and whether the session is time-bounded by default. Slightly better than adequate but leaves meaningful gaps.

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 leads with the core action before listing capabilities, so the agent gets the gist immediately. The dense enumeration is slightly list-like but every clause corresponds to a real feature, so little is wasted.

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

Completeness3/5

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

For an 8-parameter mutation tool with no annotations and no output schema, the description covers what the tool produces but omits operational context (disk writes, browser requirements, duration defaults, failure modes). It is minimally sufficient for an agent that reads the schema, but not self-sufficient.

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 eight parameters are already documented, giving a baseline of 3. The description loosely maps its capability list onto flags (WebSocket recording, cookie/localStorage state), but it doesn't clarify the injection-vs-snapshot distinction or default behaviors beyond what the schema already states.

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?

The description opens with a specific verb+resource ('Captures live dynamic web sessions') and enumerates four concrete capabilities (HAR 1.2 capture, WebSocket frame recording, cookie/localStorage snapshotting, offline replay server generation). It is clearly distinguishable in intent, though it never names or contrasts against nearby siblings like web_clone_offline_mirror or web_inspect_pwa_cache.

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 explicit guidance on when to reach for this tool versus alternatives, nor any stated prerequisites (e.g. headless browser availability, permissions). The usage is implied by the capability list but an agent must infer the selection criteria itself.

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