Skip to main content
Glama

record_session

Capture a browser workflow as a .webm video and return the saved file path, providing a visual artifact or reproduction of the steps; use separate assertion tools for checks.

Instructions

Run a sequence of steps while recording a video of the browser (Playwright video capture). Returns the saved .webm file path. Steps use the same format as interact_and_test. Use it to produce a visual artifact or repro of a workflow; for assertions/checks use interact_and_test instead.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>",
      "steps": "<steps>"
    },
    "name": "record_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL to open
stepsYesSteps to execute (same format as interact_and_test).
projectNoProject name (optional). With a project: runs in its shared, authenticated context. Without: runs in an isolated context (no shared cookies/login).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.12.0
    • changedInput schema / properties / steps / items / properties / action / enum
      Previous value: -[
      -  "click",
      -  "force_click",
      -  "fill",
      -  "force_fill",
      -  "type",
      -  "select",
      -  "select_option",
      -  "wait",
      -  "wait_for",
      -  "wait_for_text",
      -  "screenshot",
      -  "navigate",
      -  "hover",
      -  "press_key",
      -  "check",
      -  "uncheck",
      -  "scroll_to",
      -  "scroll_within",
      -  "evaluate_js",
      -  "drag",
      -  "right_click",
      -  "go_back",
      -  "go_forward",
      -  "upload_file",
      -  "wait_for_network"
      -]New value: +[
      +  "click",
      +  "force_click",
      +  "fill",
      +  "force_fill",
      +  "type",
      +  "select",
      +  "select_option",
      +  "wait",
      +  "wait_for",
      +  "wait_for_text",
      +  "screenshot",
      +  "navigate",
      +  "hover",
      +  "press_key",
      +  "check",
      +  "uncheck",
      +  "scroll_to",
      +  "scroll_within",
      +  "evaluate_js",
      +  "drag",
      +  "right_click",
      +  "go_back",
      +  "go_forward",
      +  "upload_file",
      +  "wait_for_network",
      +  "consent"
      +]
    • changedInput schema / properties / steps / items / properties / value / description
      Previous value: -"Value (for fill, select)"New value: +"Value (for fill, select); for consent: accept|deny|dismiss"
  2. Changed2 schema fields changedv0.9.4
    • addedInput schema / properties / steps / items / properties / element_index
      Added value: +{
      +  "description": "Which match of 'selector' to target, 0-based (for select_option; default: 0)",
      +  "type": "integer"
      +}
    • changedInput schema / properties / steps / items / properties / url_pattern / description
      Previous value: -"URL pattern (for wait_for_network)"New value: +"Required for wait_for_network: plain substring of the request URL (not a regex)"
  3. First observedv0.1.0

TDQS

A4.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 does disclose the key trait (video is captured during execution) and the return value (saved .webm path), which goes beyond the schema. However, it says nothing about recording overhead or execution slowdown, where the file is written or how long it persists, what happens if a step fails mid-recording, or whether the session/browser is left open afterwards.

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?

Four short sentences, front-loaded with what the tool does and its return value, then the step-format pointer, then the routing rule. No redundant restatement of the name or schema.

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 full schema coverage and no output schema, the description covers purpose, return value, step format, and alternative. Only failure-mode and cleanup behavior are missing, which is a modest gap rather than a blocking one.

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 the nested step format and the url/project parameters are already documented in structured data. The description adds one useful cross-reference ('same format as interact_and_test'), but no additional semantics for url or project beyond what the schema 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?

States a specific verb and resource ('run a sequence of steps while recording a video of the browser'), names the underlying mechanism (Playwright video capture), and distinguishes itself from the sibling that executes similar steps without recording. An agent can identify this tool without opening the schema.

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

Usage Guidelines5/5

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

Gives an explicit positive case ('produce a visual artifact or repro of a workflow') and an explicit negative case with the named alternative ('for assertions/checks use interact_and_test instead'). The routing decision is fully determined.

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