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
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": "type_text"
}
}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 |