browser_type
Enter text into web page elements during automated browser sessions to simulate user input and interaction.
Instructions
Type text
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": {
"element": "<element>",
"ref": "<ref>",
"text": "<text>"
},
"name": "browser_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element | Yes | ||
| ref | Yes | ||
| text | Yes | ||
| submit | No |
Implementation Reference
- index.js:341-350 (handler)Registration and handler for the 'browser_type' tool, which validates input using Zod and proxies the call via 'proxyToolCall'.
server.tool('browser_type', 'Type text', { element: z.string(), ref: z.string(), text: z.string(), submit: z.boolean().optional() }, async (args) => { const check = requireActivePage(); if (check) return check; return proxyToolCall('browser_type', args); });