focus_window
Bring an application window to the foreground and give it focus using its window handle. Ensures the target window is active for subsequent actions.
Instructions
Bring a window to the foreground and give it focus.
Parameters
hwnd:
The window handle (from list_windows).
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": {
"hwnd": "<hwnd>"
},
"name": "focus_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||