game_ui_focus
Redirect input focus to game or UI modes in Unreal Engine 5. Reclaim window focus when input seems lost.
Instructions
Set the game's input focus. mode: game, ui, game_and_ui, window.
Bring the window forward and hand focus back to the game with mode="game" if input seems to be going nowhere.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "game_ui_focus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | game | |
| widget | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |