window_focus
Bring any application window to the foreground by matching its title or process name. Use it to switch focus to a specific window before sending keystrokes or interacting with it.
Instructions
Bring a window to the foreground by matching its title or process name (case-insensitive). Use this tool to switch focus to a specific application window before sending keys or interacting with it. Example: "Notepad", "Visual Studio Code", "chrome" — matches any open window whose title contains the text. Returns an error if no matching window is found.
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": {
"title": "<title>"
},
"name": "window_focus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Window title or process name to focus. Example: "Notepad" or "Code" or "chrome" |