Skip to main content
Glama
zeshuochen

nekoro-browser-mcp

by zeshuochen

upload_file

Sets file(s) on file input elements using CDP, triggering change events. Accepts absolute file path or list for multi-file uploads.

Instructions

upload_file("input[type=file]", r"C:\a.png") — 给文件输入框设文件。 走 CDP DOM.setFileInputFiles(触发 change 事件,框架能收到);path 为绝对路径, 单个 str 或多个 list。文件不存在 / 找不到元素 / 元素非 file input → ok:false,不伪造成功。 注意:作用于当前 attached tab,nodeId 经 daemon.query_selector 解析。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selYes
pathYesFile path, or a list of paths for multi-file inputs
Behavior5/5

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

With no annotations provided, the description fully carries the burden of behavioral clarity. It explicitly discloses the CDP mechanism, event triggering, path requirements, failure conditions (file not found, element not found, non-file input) with ok:false, and scoping to the current attached tab. This is exceptionally transparent.

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 compact and front-loaded with an example, followed by necessary technical details. Every sentence provides useful information — mechanism, parameter types, error behavior, and scope — without excess. It is well-structured and efficient.

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 2-parameter tool with no output schema or annotations, the description covers usage, constraints, failure cases, and environment context. The only gap is that it does not explicitly describe the success return format (only mentions ok:false on failures), but it implies ok:true on success, which is sufficient for most use cases.

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 description coverage is only 50% (path has a description, sel does not). The description compensates by giving a usage example for sel, explicitly stating path can be a single str or list, requiring absolute paths, and explaining that nodeId is resolved via query_selector. It adds meaning beyond the schema, though sel semantics are inferred rather than explicitly defined.

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: '给文件输入框设文件' (set file on a file input). It provides a concrete usage example and specifies the underlying CDP method (DOM.setFileInputFiles), distinguishing it from sibling tools like fill_input or type_text that handle text inputs.

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 implies the tool is for file input elements and explains behavior (triggers change event, requires absolute paths, fails on non-file inputs). It gives clear context but does not explicitly exclude alternatives or mention when not to use it, so a perfect score is not warranted.

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/zeshuochen/nekoro-browser'

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