向输入框输入文本
typeLocate an input by CSS selector, focus it, fill in text, and trigger input/change events, including contenteditable elements.
Instructions
通过 CSS 选择器找到输入元素,聚焦并写入文本,随后派发 input / change 事件(兼容 contenteditable)。
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": "type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | 操作说明:展示给页面用户的自然语言描述(用户会在页面气泡的操作记录里看到),用用户的语言填写,建议始终提供 | |
| text | Yes | 要输入的文本 | |
| pageId | No | 目标页面 id(单页时可省略) | |
| selector | Yes | CSS 选择器 |