browser_select_text
Selects one occurrence of text in an editable element, using prefix and suffix to disambiguate when the same text appears multiple times.
Instructions
Select one occurrence in an editable element. Use prefix/suffix to disambiguate.
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": {
"tabId": "<tabId>",
"text": "<text>"
},
"name": "browser_select_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from the latest snapshot in this document. | |
| text | Yes | ||
| tabId | Yes | Tab id from browser_tabs. | |
| prefix | No | ||
| suffix | No | ||
| browser | No | Browser id from browser_list, or chrome/firefox when only one instance matches. | |
| frameId | No | Frame id from browser_frames; defaults to top frame. | |
| revision | No | Reject if the DOM revision differs from the snapshot. | |
| selector | No | CSS selector. Must identify exactly one element. | |
| documentId | No | Reject the action if this snapshot document has changed. | |
| selectionType | No | text |