Focus a window
hs_focus_windowBring a specific window to the front by its ID or a title substring, and confirm the selection with the returned window details.
Instructions
Bring a window to the front, selected by id (exact) or by a substring of its title. The matched window is returned so you can confirm the right one was chosen.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hs_focus_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Window id from hs_list_windows. | |
| title | No | Substring of the window title. |