Browser Focus
browser_focusUse this to focus a specific existing Chromium page element by CSS selector or text before typing. It does not enter content; prefer browser_find for an unknown target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | For action=type, Unicode text to insert. For non-type element actions without selector/browser_text, visible text may identify the target. | |
| title | No | Choose a page whose title contains this text. | |
| device | Yes | ReMCP device id returned by list_devices. Required for every device operation. | |
| endpoint | No | Loopback Chrome DevTools endpoint. Defaults to REMCP_CDP_URL or http://127.0.0.1:9222. | |
| selector | No | CSS selector for the target element; prefer the reusable selector returned by browser_find. | |
| target_id | No | Page target id returned by browser_tabs. | |
| timeout_ms | No | Timeout in milliseconds. | |
| browser_text | No | Visible text used only to locate a DOM element; use this instead of overloading text for action=type. | |
| url_contains | No | Choose a page whose URL contains this text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Browser element action structured result for browser_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload. | |
| text | Yes | Concise human-readable result of the tool call. |