focus_window
Bring a window to the front by matching part of its title or app class to focus it, avoiding manual Alt+Tab or overview navigation.
Instructions
Bring a window to the front and focus it, matched by part of its title or app class, e.g. "Chrome", "WhatsApp", "Terminal". Much faster and more reliable than clicking through the overview or Alt+Tab (X11 only).
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": {
"query": "<query>"
},
"name": "focus_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| screenshot | No |