Skip to main content
Glama
yinnho

AginxBrowser

session_export

Read-only

Export a browser session's recorded actions as a runnable bash script, raw JSONL log, or editable flow.json for replay or inspection.

Instructions

Export a browser session's recorded action log. Format "bash" (default) returns a runnable curl script that replays every recorded action (navigate/click/input/scroll/eval) against a fresh session on this server — hand it to a shell or cron, zero model tokens. Format "jsonl" returns the raw action log, one JSON object per line. Format "json" returns a flow.json document — the same recording as editable ops ({op, args}) with cookies/storage stripped — that flow_run replays server-side.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoOutput format: "bash" (default) renders a runnable curl script that replays every recorded action against a fresh session; "jsonl" returns the raw action log, one JSON object per line; "json" returns a flow.json document (editable ops, cookies/storage stripped) for replay via flow_run
session_idYesSession ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.1
    • changedInput schema / properties / format / description
      Previous value: -"Output format: \"bash\" (default) renders a runnable curl script that\nreplays every recorded action against a fresh session; \"jsonl\" returns\nthe raw action log, one JSON object per line"New value: +"Output format: \"bash\" (default) renders a runnable curl script that\nreplays every recorded action against a fresh session; \"jsonl\" returns\nthe raw action log, one JSON object per line; \"json\" returns a\nflow.json document (editable ops, cookies/storage stripped) for\nreplay via flow_run"
    • removedInput schema / title
      Removed value: -"SessionExportParams"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare readOnlyHint=true and no destructive consequences, so the description already starts with a safety baseline. It goes further by disclosing format-specific behaviors: bash produces a runnable curl script that replays against a fresh session, and json strips cookies/storage into editable ops — adding meaningful behavioral context beyond the annotations.

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 scope statement is front-loaded and each subsequent sentence covers a distinct format with its purpose and output shape — no filler. The content is dense but appropriately sized for a tool that needs to explain three formats.

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?

With no output schema, the description carries the burden of explaining return values and does so for all three formats, including the replay mechanics and stripped data. It doesn't cover error cases (e.g., missing session), but for a read-only export tool the essential usage guidance is present.

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 schema already documents session_id and format in detail. The description reinforces the meaning of each format value (bash default and runnable, jsonl raw log, json editable for flow_run), adding semantic color that helps the agent select the right value without needing to read the full schema.

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 the verb 'Export' with the specific resource 'a browser session's recorded action log,' which clearly distinguishes the tool from the many session_* siblings. It also contrasts with flow_run by explaining that json output is replayed server-side, so an agent can tell export apart from the sibling that consumes it.

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?

Provides clear context on when each format is appropriate: bash for shell/cron with zero model tokens, json for replay via flow_run, and jsonl for the raw action log. It names flow_run as the alternative tool for replay, though it doesn't exhaustively cover when not to use each format.

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