tab_type
Types text into a browser page field or focused canvas app using real keyboard input, optionally replacing content or submitting; get field refs from tab_read.
Instructions
Type into a text field of a page in the user's browser with the real mouse and keyboard, or without a ref into whatever has the focus (a canvas app editing text). With a ref the field is clicked to focus it, its content is replaced (or appended to with clear=false), and the text is typed, so the page reacts as it would to the user. With a ref it returns the value the field holds afterwards (hidden for passwords), or with submit what changed on screen; without one it always returns what changed on screen. Take the field's ref from tab_read. For several fields at once use tab_fill; for a native select dropdown use tab_select_option.
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": {
"text": "<text>"
},
"name": "tab_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref: the number in brackets in tab_read output, e.g. 12 for "[12] button". Refs stay valid while the element stays on the page. Omit it to type into whatever already has the focus in the tab, such as the text a canvas app (a design tool) is editing after a double-click: nothing is clicked, cleared or checked then, so a line break goes as Shift+Enter whatever has the focus, and the result reports what changed on the page instead of the field's value. | |
| text | Yes | Text to type. Any characters work: capitals, symbols, accents, emoji. A line break (\n) is typed as Shift+Enter, which starts a new line in a chat box or text area without sending; with a ref, a single-line field refuses line breaks. | |
| clear | No | Select and delete what the field holds before typing. Defaults to true with a ref; without one nothing is cleared, and clear=true is refused. | |
| tabId | No | Tab id from tab_list or tab_read. Defaults to the active tab of the browser window the user used last. | |
| submit | No | Press Enter after typing, which usually submits the form. Defaults to false. |