Skip to main content
Glama

browser_upload_stage

Stage a file (image, video, or document) into the project's upload library. Accepts local path, URL, data URL, or base64. Returns a reusable stashId for subsequent uploads.

Instructions

Stage a file (image/video/document) into the project's content-addressed upload library at .continuum/uploads/. Accepts one of: local path, https URL, data URL, or raw base64. Returns a stashId that can be passed to browser_upload_file (or reused across multiple uploads). Idempotent — same bytes always produce the same stashId.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesExactly one of: path, url, dataUrl, base64. Use `mime` to supplement base64.
mimeNoMIME override (used when source is raw base64).
nameNoFriendly filename (some upload endpoints inspect form-data name).
keepNosession
maxBytesNoReject if file exceeds this many bytes. Default 50MB; hard cap 100MB.
Behavior4/5

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

With no annotations, the description carries full transparency burden. It discloses idempotency, destination, return value, and maxBytes limit. Missing details on permission requirements or error handling, but adequate for typical staging operations.

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 concise (4 sentences) with no redundancy. Key information is front-loaded: what it does, where, and what it returns.

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?

Given 5 parameters, 1 required, nested objects, and no output schema, the description covers the essential: source types, return value, idempotency, and size limit. It could mention the 'keep' parameter's effect, but schema descriptions suffice for that.

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 80%, and the description adds context beyond schema: grouping of source types, purpose of stashId, and idempotency. It also clarifies that stashId is reused across uploads, which is not explicit in schema.

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 clearly states the tool's function: staging files into a specific upload library. It specifies file types (image/video/document), destination path, and return value (stashId). It distinguishes itself from sibling tool browser_upload_file by noting that stashId can be passed to it.

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 description lists the four accepted source types (path, url, dataUrl, base64) and explains idempotency and stashId reuse. It indirectly guides when to use this tool (before browser_upload_file) but lacks explicit 'when not to use' or alternative scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DevZonayed/Mochi'

If you have feedback or need assistance with the MCP directory API, please join our Discord server