Skip to main content
Glama
wxhzhwxhzh

DrissionPageMCP

by wxhzhwxhzh

upload_file

Uploads a file to the current webpage by triggering the file input element, using the specified file path. Returns upload result or error.

Instructions

点击当网页上的 元素触发上传文件的操作,上传file_path文件到当前网页

Args:
file_path (str): 要上传的文件路径

Returns: str: 上传结果信息,如果元素不存在则返回错误信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
Behavior3/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It mentions the click action and that an error is returned if the element doesn't exist, but does not disclose potential side effects, wait behavior, or handling of multiple file inputs.

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?

The description is concise and front-loaded with the main action. The Args/Returns block is structured and not overly verbose, though the parameter description is somewhat redundant with the schema.

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 simple tool with one parameter and no output schema, the description covers the action, parameter, and return value. It is complete enough for basic usage, though it could benefit from notes on prerequisites or limitations.

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 0%, so the description must compensate. It includes an Args section explaining file_path as 'the file path to upload,' but this adds minimal value beyond the schema's 'File Path' title. No format, restrictions, or examples are given.

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 states a specific action: click the webpage's <input type='file'> element to upload the specified file. This clearly distinguishes it from sibling tools like download_file, click_by_xpath, and input_by_xapth.

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?

The description implies usage when a file input element is present on the page, but does not explicitly state when to use this tool vs alternatives or any exclusions. It lacks direct guidance on scenarios where other upload methods might be preferred.

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/wxhzhwxhzh/DrissionPageMCP'

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