updateGame
Update a specific game field using path notation, automatically handling game over conditions with empathetic reasoning.
Instructions
Update a specific field in the game state and return the complete updated game state. Supports nested property updates using path notation. If the update results in game over (e.g., character HP reaches 0, story reaches bad ending), set isGameOver=true. Use progressStory next to advance the narrative.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gameId | Yes | ID of the game to update | |
| fieldSelector | Yes | Path to the field to update. Examples: 'characters[0].level', 'world.time', 'player.stats.hp', 'characters[1].favorability' | |
| value | Yes | New value to set (supports all types: string, number, object, array, boolean, null) | |
| isGameOver | No | Set to true if this update results in game over condition (e.g., character death, bad ending reached) | |
| gameOverReason | No | Explanation of why the game ended when isGameOver is true. Should be empathetic and include what could have been done differently. |