Skip to main content
Glama

browser_file_upload

Read-onlyIdempotent

Attach files to an . Pass either local_paths (files in the downloads directory only), data (list of {name, mime, base64} blobs written to /tmp; 25MB cap per file) or urls (http(s) URLs fetched with this browser session's cookies and uploaded; no cap of ours). frame = CSS selector of the the input lives in.

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": {
      "page_id": "<page_id>",
      "ref": "<ref>"
    },
    "name": "browser_file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
dataNo
urlsNo
frameNo
page_idYes
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / local_paths
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Local Paths"
      -}
  2. Changed2 schema fields changed
    • addedInput schema / properties / frame
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Frame"
      +}
    • addedInput schema / properties / urls
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Urls"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / in_workspace
      Added value: +{
      +  "description": "Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.",
      +  "type": "integer"
      +}
  4. Added
  5. Removed
  6. Added
  7. Removed
  8. Added
  9. Removed
  10. Added
  11. Removed
  12. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the safety profile (readOnly, non-destructive, idempotent), so the description's real value is the operational detail it adds: per-file size caps, that base64 blobs land in /tmp, and that URL fetches inherit the browser session's cookies. The main omission is what the call returns or what happens on partial failure across multiple files.

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?

Front-loaded with the core action, then payload modes, then the frame note; nearly every clause carries information. The long compound sentences are dense but not padded.

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?

For a 6-parameter tool with three distinct modes and no output schema, the description covers the hard parts (mode selection, caps, cookie inheritance) but leaves gaps: ref and page_id are undefined, in_workspace is untouched, and the return value is unspecified. The stale `local_paths` reference further reduces confidence that the documented parameters match the real schema.

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 only 17%, and the description does real work for data, urls, and frame, including the blob object shape and the 25MB cap. However, the two required parameters, ref and page_id, are never explained, and it names a `local_paths` parameter that does not exist in the schema, which is actively misleading.

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 a specific verb and resource: 'Attach files to an <input type=file>'. That is unambiguous and separates it from batch/file-storage siblings such as drive_upload or files_upload, which do not target a live page element.

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?

The 'Pass either ... or ...' construction makes clear that the three payload modes are mutually exclusive alternatives, and it gives the selection constraint for each (downloads directory only, /tmp + 25MB cap, fetched with session cookies). It stops short of naming when to prefer a sibling tool over this one, but the context is clear enough to act on.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources