type_text
Focus a page element and type text into it, replacing existing content by default or appending as needed.
Instructions
Focus an element and type text via CDP Input.insertText.
By default the field is cleared first (``replace=True``). Set
``replace=False`` to append to the existing value.
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": {
"text": "<text>",
"selector": "<selector>"
},
"name": "type_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| replace | No | ||
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |