Skip to main content
Glama

browser_export

Writes text or Markdown to md, txt, or html files inside the bwb export directory (default ~/bwb-exports); blocks paths outside it and unsupported pdf/docx/pptx outputs.

Instructions

Write text to a file inside the bwb export directory (default ~/bwb-exports). Formats: md, txt, html. Paths outside the export directory are refused. No pdf/docx/pptx: those were reported as "ready" while writing nothing.

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": {
      "text": "<text>"
    },
    "name": "browser_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesContent to export (markdown accepted)
titleNoDocument title (html only)
formatNoOutput format
filenameNoFile name inside the export dir (optional; extension from format)
overwriteNoAllow replacing an existing file

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv4.5.0
    • addedInput schema / properties / filename
      Added value: +{
      +  "description": "File name inside the export dir (optional; extension from format)",
      +  "type": "string"
      +}
    • changedInput schema / properties / format / enum
      Previous value: -[
      -  "md",
      -  "txt",
      -  "html",
      -  "pdf",
      -  "docx",
      -  "pptx"
      -]New value: +[
      +  "md",
      +  "txt",
      +  "html"
      +]
    • removedInput schema / properties / output_path
      Removed value: -{
      -  "description": "Where to write the file",
      -  "type": "string"
      -}
    • addedInput schema / properties / overwrite
      Added value: +{
      +  "description": "Allow replacing an existing file",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / title / description
      Previous value: -"Document title"New value: +"Document title (html only)"
  2. Addedv4.0.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does substantial work: it discloses the sandbox root and its default, the confinement rule that rejects outside paths, and a real historical failure mode where unsupported formats silently wrote nothing. It omits what the tool returns (e.g., the written path) and whether directories are auto-created.

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?

Four short sentences, front-loaded with the core action and then the constraints, with no filler. The closing remark about pdf/docx/pptx 'reported as ready while writing nothing' is informal but earns its place as a concrete warning.

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 five-parameter write tool with no annotations and no output schema, the description covers location, confinement, and supported formats well enough to call correctly. The main remaining gap is the return value, which the agent must guess since no output schema exists.

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 every one of the five parameters is already documented in the schema, including the format enum and the html-only title. The description adds the export-root default and the refusal rule but nothing per-parameter beyond that. Baseline 3 is appropriate when the schema does the heavy lifting.

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 concrete verb and resource ('Write text to a file inside the bwb export directory') and immediately constrains the supported formats to md, txt, html. An agent can tell exactly what this tool produces without opening the schema. It does not explicitly contrast with the closest sibling, browser_download, so it stops short of a 5.

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 negative guidance: paths outside the export directory are refused, and pdf/docx/pptx are unsupported. That steers the agent away from wrong calls. It never names an alternative tool for those refused cases, so the routing guidance is implicit rather than explicit.

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