Skip to main content
Glama
Antigravity Browser Operator

Antigravity Browser Operator

browser_upload_file

Uploads a local file directly to a file input on the active or specified browser tab, bypassing the OS file picker.

Instructions

Uploads a local file to a file input on the active or specified tab completely autonomously without opening OS file picker.

Input Schema

NameRequiredDescriptionDefault
refNoOptional indexed reference ID from browser_get_dom.
tabIdNoOptional tab ID.
filePathYesAbsolute local file path to upload (e.g. D:\facebook-ai-agent\assets\cover.jpg).
selectorNoOptional CSS selector of the file input (defaults to input[type="file"]).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that no OS file picker is opened and the upload is autonomous, but omits failure behavior, whether it dispatches change/input events (critical for JS frameworks), and permission or path-validation constraints.

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?

A single front-loaded sentence with the core behavior stated first. 'Completely autonomously without opening OS file picker' is slightly redundant phrasing but every clause carries information.

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 four-parameter automation tool with no annotations and no output schema, the description covers the headline behavior but leaves out what an agent needs to recover from failure or to know how the upload is injected. Adequate but with clear gaps.

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 coverage is 100%, so the schema already documents all four parameters thoroughly, including examples and defaults. The description only echoes the tab scoping and file-input target, adding no syntax or precedence detail beyond the schema; baseline 3 applies.

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?

States a specific verb and resource ('Uploads a local file to a file input') with clear scope ('active or specified tab'), which distinguishes it from generic input tools like browser_type and browser_click. It does not name any sibling explicitly, so it falls 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 Guidelines3/5

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

Usage is only implied: an agent infers it should be used when a page has a file input. There is no guidance on when to prefer this over browser_click on a picker button, no note on ref vs selector vs tabId precedence, and no stated preconditions.

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