Type Into Element
browser_typeEnters text into a specified input field using a CSS selector, capturing DOM and network data for debugging Playwright automations.
Instructions
Use when text must be entered into a known input during a reproduction. Preconditions: an active page and precise selector are required; use only data intended for the authorized target. Next: continue with the next action or observe the resulting request and DOM changes. Sensitivity: typed values may be captured in DOM, console, network, screenshots, or trace artifacts.
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": "browser_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| delayMs | No | ||
| selector | Yes | ||
| timeoutMs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |