fill
Fills a specified input field with text after clearing its existing content. Includes option to press Enter afterward.
Instructions
向输入框填入文本(会先清空现有内容)。
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": "fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 要填入的文本内容 | |
| selector | Yes | CSS 选择器(如 "input[name=email]", "#search-box") | |
| pressEnter | No | 填入后是否按回车键,默认 false |