Skip to main content
Glama

ruyi_dom_input

Fill web form fields by sending text or file paths to DOM elements, with an option to clear existing content before input.

Instructions

向 DOM 元素输入文本或上传文件。支持普通文本输入和文件路径上传。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes要输入的文本内容
clearNo输入前清空已有内容,默认 true
pageIdxNo
selectorYes目标元素选择器
Behavior2/5

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

With no annotations provided, the description must disclose behavioral traits but only states the basic action. It does not mention default clearing behavior, event dispatch, file upload limitations, or any effects on the page beyond the input itself. The 'clear' parameter in the schema is the only behavioral hint, but the description does not elaborate.

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 two sentences long, front-loaded with the primary action and immediately clarifying the upload capability. Every word earns its place with no unnecessary details or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 4 parameters, no output schema, and no annotations, making the description the sole source of contextual information. It is too brief to cover important behaviors like clearing by default, event dispatch, or how file uploads work, and it does not mention the 'pageIdx' parameter at all. An agent would need more context to invoke this tool reliably in complex scenarios.

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?

The description adds meaning by clarifying that the 'text' parameter can be either a normal text string or a file path for upload, which goes beyond the schema's basic description. However, it does not explain 'pageIdx' or 'clear', though schema coverage is 75% and those fields have their own descriptions. The added upload semantics justify a score above the baseline.

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 that the tool inputs text or uploads files to DOM elements, explicitly mentioning support for both regular text and file path upload. This distinguishes it from sibling tools like ruyi_human_input, which simulate human input rather than direct DOM manipulation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance is given on when to use this tool versus alternatives such as ruyi_human_input or other DOM interaction tools. The description only lists capabilities without providing context, exclusions, or recommended scenarios, leaving the agent to infer usage.

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/Facetomyself/ruyi-mcp'

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