game_state
Get exact world state data (level, time, player transform, camera, nearby actors) in Unreal Engine 5, providing precise game information at low token cost.
Instructions
Structured world state -- no screenshot, cheap to call often.
Returns the level name, world time and pause/dilation, the player pawn's
transform, velocity and movement mode, the camera, and the nearest actors
with their distance and their normalized screen position (the same 0..1
coordinates game_mouse takes, so you can aim at what you find here).
class_filter keeps only actors whose class name contains that substring,
e.g. "Enemy". radius is in centimetres. Games can add their own values --
health, score, quest flags -- by implementing IRemoteGameStateProvider on an
actor; those show up under "custom".
Prefer this over reading numbers off the screen: it is exact, and it costs a fraction of the tokens an image does.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actors | No | ||
| radius | No | ||
| max_actors | No | ||
| class_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |