activate_window
Brings any window to the foreground by its ID, enabling direct keyboard input and actions without prior element interaction.
Instructions
Bring a window to the foreground.
Element-scoped actions (click, set_value, select_text, etc.) bring
their window to focus automatically — you rarely need this. Use it
when you need to type_text or press_key in a window without first
clicking an element in it (e.g. sending a keyboard shortcut to a
window you haven't interacted with yet in this task).
Args:
window_id: The window ID to activate (from 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": {
"window_id": "<window_id>"
},
"name": "activate_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |