focus_window
Focus a window by its unique address or a class/title regex selector (e.g., 'class:^(firefox)$').
Instructions
Focus a window by its unique address (from list_windows) or by class/title regex selector (e.g. 'class:^(firefox)$').
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": {
"target": "<target>"
},
"name": "focus_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Either a window address like '0x55f...' or a selector like 'class:^(kitty)$' or 'title:^(Inbox)$' |