browser_focus
Focus on specific webpage elements using Playwright selectors to enable keyboard input or interaction with form fields, buttons, or other interactive components during browser automation.
Instructions
Focus an element (see browser_docs)
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": {
"selector": "<selector>"
},
"name": "browser_focus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | Playwright selector for the element |