Skip to main content
Glama

browser_download

Triggers a file download by clicking an export button or attachment link and saves it to the output directory; set a custom filename if needed.

Instructions

点击触发下载并把文件保存到输出目录(如导出按钮、附件链接)

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_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo触发下载的元素编号
filenameNo保存的文件名,默认用服务器建议的文件名
selectorNoCSS 选择器(与 ref 二选一)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the whole burden. It does disclose the key side effect (the file is written to the output directory), but it says nothing about waiting/timeout behavior, what happens if the download fails, or whether the saved path/filename is returned.

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?

A single compact sentence with the action front-loaded and a parenthetical example that earns its place. No redundant or filler wording.

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?

As a low-complexity, all-optional-parameter tool this is close to adequate, and the schema covers parameters well. However, with no annotations and no output schema, the description should still state what happens on failure or whether the saved location is returned, and it does not.

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?

All three parameters (ref, filename, selector) are fully documented in the schema at 100% coverage, so the baseline is 3. The description adds only the general notion of 'clicking to trigger', without clarifying how ref and selector trade off or how filename interacts with the server-suggested default.

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 names a concrete action (click to trigger a download) and its result (file saved to the output directory), and gives example triggers (export buttons, attachment links). That is enough to distinguish it from a plain browser_click, though it never names that sibling explicitly.

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?

Usage context is stated implicitly but clearly: use it when a click causes a file download, such as an export button or attachment link. There are no explicit exclusions or named alternatives (e.g. 'use browser_click for non-downloading clicks'), which keeps it out of 5 territory.

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