Web Type
web_typeTypes text into a form field (input/textarea) or a rich-text editor (a contenteditable element) on the current page. target is a CSS selector or the field's visible label/placeholder. The field is read back after the page's own scripts run: if it ends up holding something else (a mask or an editor that rejected the text), the call fails with not_applied and returns the value the field holds. Does NOT submit — use web_click on the submit button afterwards (that step is gated). SPECIAL CASE — file inputs: if target resolves to an , text is instead treated as a LOCAL FILE PATH on this Mac and the file is attached (JS can't set a file input's value directly; this answers the native file panel programmatically without ever showing it).
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": {
"target": "<target>",
"text": "<text>"
},
"name": "web_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to type. For an input[type=file], this is instead the LOCAL FILE PATH to upload. | |
| target | Yes | CSS selector or visible label/placeholder of the field. | |
| confirm | No | Ignored; kept for older clients. | |
| session | No | Session name (default 'default'). |