chrome_type
Type text into a specified input element in Chrome using a CSS selector. Optionally clear the field before entering new text.
Instructions
Type text into an input element in an active Chrome CDP session.
Args: session_id: Session returned by chrome_open_session selector: CSS selector for input element text: Text to type clear_first: Clear existing value before typing
Returns: Success or error message
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": {
"session_id": "<session_id>",
"selector": "<selector>",
"text": "<text>"
},
"name": "chrome_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| selector | Yes | ||
| session_id | Yes | ||
| clear_first | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |