browser_type
Automate text input into web elements using Playwright MCP, enabling precise typing, optional character-by-character entry, and form submission for interactive browser actions.
Instructions
Type text into editable element
Input Schema
Name | Required | Description | Default |
---|---|---|---|
element | Yes | Human-readable element description used to obtain permission to interact with the element | |
ref | Yes | Exact target element reference from the page snapshot | |
slowly | No | Whether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once. | |
submit | No | Whether to submit entered text (press Enter after) | |
text | Yes | Text to type into the element |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"element": {
"description": "Human-readable element description used to obtain permission to interact with the element",
"type": "string"
},
"ref": {
"description": "Exact target element reference from the page snapshot",
"type": "string"
},
"slowly": {
"description": "Whether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once.",
"type": "boolean"
},
"submit": {
"description": "Whether to submit entered text (press Enter after)",
"type": "boolean"
},
"text": {
"description": "Text to type into the element",
"type": "string"
}
},
"required": [
"element",
"ref",
"text"
],
"type": "object"
}