Type text
type_textInserts literal text into a browser input using genuine input events and appends to any existing value; clear the field first to replace its contents.
Instructions
Type text into an input via the browser's own text insertion.
Focuses the element with a real click first (programmatic focus when something decorative covers it), then inserts the text through CDP, so the page receives genuine input events and no page JavaScript runs. Appends to any existing value: call clear_input first to replace it. Use press_key or human_type when a page needs per-key events. Returns the target, its tag, and a summary with the character count.
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>",
"selector": "<selector>"
},
"name": "type_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab id from list_tabs or new_tab to act on, instead of the active tab. The active tab does not change. Omit to use the active tab. Example: 'tab_2' | |
| text | Yes | Literal text to insert. Inserted as one chunk, so it fires no per-key events. Example: 'user@example.com' | |
| selector | Yes | CSS selector, or a numeric id from get_interaction_tree passed as a string. Example: '#submit' or '42' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Interaction-tree id of the element acted on; reusable while it exists. | |
| tag | No | Tag name of the element acted on. | |
| target | Yes | The selector, id or text the call acted on. | |
| summary | Yes | One line saying what happened. |