Type into element
browser_typeType into a text field, textarea, or contenteditable from the latest observation. A non-editable element (editable: false, such as a submit button) returns ELEMENT_NOT_INTERACTABLE and does not change the page. length is the number of Unicode code points. A number, date, time, week, month, or color input that cannot hold the text returns INVALID_INPUT_VALUE and does not set the value. The typed value is not stored in the audit log. Events are not isTrusted; Browse Bridge does not spoof that flag. On a sensitive site, type returns APPROVAL_REQUIRED with approvalId. After Deny, the next type returns APPROVAL_DENIED with that approvalId once, even when the new observation has a new element id. Typed text is not part of that match. A later type may ask again. After Approve, the completed success includes that same approvalId and approved: true. A type that did not need approval does not include approvalId. Password fields return HUMAN_INPUT_REQUIRED — the human types that value; there is no Approve that types a password.
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>",
"observationId": "<observationId>",
"elementId": "<elementId>",
"text": "<text>"
},
"name": "browser_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| submit | No | ||
| elementId | Yes | ||
| sessionId | Yes | ||
| observationId | Yes | ||
| idempotencyKey | No | A key replays the original result only within ~60 seconds of the first call, only for the same Mcp-Session-Id, the same credential (API key or OAuth token), the same browser session, and the same tool. After the window, or under a different session/credential/tool, the call executes and bills normally. Reusing a key with different arguments returns IDEMPOTENCY_KEY_REUSED and is not executed or billed. Refusals (e.g. NO_HISTORY_ENTRY) are not cached, so the same key re-executes once state changes. A key passed in _meta is ignored. |