Focus a window
focusBrings a specified window in a nested Wayland display to the foreground so keyboard input reaches the correct app before typing.
Instructions
Focuses a window inside the display (needed before typing into some apps).
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": {
"window_id": "<window_id>"
},
"name": "focus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Display id from display_open. Optional when exactly one display is open. | |
| window_id | Yes |