ask_in_game
Get real-time user input during gameplay by displaying a question and waiting for a typed response, enabling interactive confirmations.
Instructions
Ask a question in-game and wait for the user's response.
Use this instead of terminal confirmations when the user is playing. Shows the question via notification, opens keyboard, waits for response.
Common pattern for confirmations: result = ask_in_game("Write camber=0.1 to wheel 0? Type yes/no") if "yes" in result.lower(): # proceed with write
Args: question: The question to display in-game timeout_seconds: How long to wait for response (default 60)
Returns: The user's typed response
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |