tb_type
Types text into a web input using CSS, XPath, ID, name, tag, class, or link-text locators; clears the field first by default and can press Enter after typing.
Instructions
Type text into an input. Uses the same locator strategies as tb_click. Clears the field first by default.
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": {
"sessionId": "<sessionId>",
"value": "<value>",
"text": "<text>"
},
"name": "tb_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Locator strategy (default css) | css |
| text | Yes | Text to type | |
| value | Yes | Locator value | |
| sessionId | Yes | Session ID from tb_openBrowser | |
| clearFirst | No | Clear the field before typing | |
| pressEnter | No | Press Enter after typing |