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 元素输入文本或上传文件。支持普通文本输入和文件路径上传。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"selector": "<selector>",
"text": "<text>"
},
"name": "ruyi_dom_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 要输入的文本内容 | |
| clear | No | 输入前清空已有内容,默认 true | |
| pageIdx | No | ||
| selector | Yes | 目标元素选择器 |