Skip to main content
Glama

browser_get_file

Read-only

Fetch files the browser can reach—PDFs, images, link targets, or URLs—using the current logged-in session, save them locally, and return their paths; images are also returned for viewing.

Instructions

Get a file the browser can reach, with its logins: a PDF or image on the page, a link's target, or any URL. Images come back so you can see them; every file is saved locally and its path returned (open PDFs from there). With no arguments: the file the tab shows (e.g. a PDF).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_get_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoAn image, link, embed or video from the snapshot
urlNoAddress of the file
elementNoHuman-readable description of the element

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.2

TDQS

A3.8/5.0
Behavior4/5

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

The annotations only say readOnly and openWorld; the description goes well beyond them by disclosing that the fetch reuses the browser's logins, that images are returned inline for viewing, that every file is written to local disk, and that the returned path is where PDFs should be opened. That is meaningful behavioral context, especially since a "readOnly" tool still writes a file locally. It does not cover size limits, failure modes, or timeout/retry behavior.

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?

Three short sentences, front-loaded with the core action and followed by return behavior and the no-argument case. Little waste; "so you can see them" is mildly redundant with "Images come back," but it clarifies intent rather than padding.

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 three-parameter, no-required-input tool with no output schema, the description covers the essentials: how authentication is applied, what is returned (inline image plus a local path), and the default behavior. Only error handling and size/format constraints are left unstated.

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 baseline is 3, but the description adds real meaning the schema does not: it explains what each parameter targets (an element on the page vs. a link's address vs. an arbitrary URL) and, crucially, what happens when all three are omitted. The zero-argument default is documented only in the description.

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 and resource ("Get a file the browser can reach") and enumerates what counts as such a file: a PDF or image on the page, a link's target, or any URL. That is far more concrete than the name alone. It stops short of naming a sibling to contrast with, so an agent must infer on its own how this differs from browser_download or browser_screenshot.

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

Usage Guidelines3/5

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

"With no arguments: the file the tab shows (e.g. a PDF)" gives one clear usage condition, and the three source forms imply when each parameter applies. But there is no explicit routing away from the closest neighbors (browser_download, browser_screenshot, browser_get_text), and no statement of when not to use it.

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