type_text
Enter text into a specified input element on a webpage using a CSS selector. Optionally clear the input before typing. Part of the MCP Safari Server for browser automation and testing on macOS.
Instructions
Type text into an input element
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clearFirst | No | Clear the input before typing (default: true) | |
| selector | Yes | CSS selector for the input element | |
| text | Yes | Text to type into the element |
Input Schema (JSON Schema)
{
"properties": {
"clearFirst": {
"description": "Clear the input before typing (default: true)",
"type": "boolean"
},
"selector": {
"description": "CSS selector for the input element",
"type": "string"
},
"text": {
"description": "Text to type into the element",
"type": "string"
}
},
"required": [
"selector",
"text"
],
"type": "object"
}