Skip to main content
Glama

Save the current session to a file

browser_save_session
Destructive

Saves current Firefox window and tab session to a JSON file, so you can back up browser state before restoring or switching sessions.

Instructions

Write the current window and tab session to a JSON file (SessionStore.getBrowserState). This only READS the browser; the file it writes is the input for browser_restore_session. Save before restoring, so the state you have now can be brought back.

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute file path to write (forward slashes are fine)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

The description usefully clarifies that the operation only reads the browser but does write a file, which is meaningful context beyond the annotations. However, destructiveHint=true suggests the file write may overwrite existing content, and the description does not mention overwrite behavior, file replacement risk, or error handling. It does not directly contradict the annotations, but it under-discloses the destructive aspect.

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 tight sentences, front-loads the core action, and uses the remaining space to explain the save-before-restore relationship. There is no redundant or filler text.

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 simple one-parameter save operation with no output schema, the description covers purpose, relationship to restore, and the fact that the browser is only read. The main remaining gap is the absence of information about overwriting an existing file, which matters given the destructive annotation.

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?

The single path parameter is fully documented in the schema, including that it must be an absolute path and that forward slashes are acceptable. The description adds that the file is JSON and consumed by browser_restore_session, but does not add further semantics about the path itself beyond the schema baseline.

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 uses a precise verb and resource: writing the current window and tab session to a JSON file, and even names the underlying SessionStore.getBrowserState. It clearly distinguishes this from browser_restore_session by identifying the saved file as restore input.

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?

It gives clear usage context: save before restoring so the current state can be brought back, and explicitly links the output to browser_restore_session. It does not spell out exclusions or failure cases, but the when-to-use guidance is strong.

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

Deploy Server

Other Tools