generate_game_inputs
Translate 3D navigation paths into Playwright WASD or click-to-move commands, or project and unproject 3D coordinates, for browser game automation.
Instructions
Translate 3D navigation paths into Playwright commands (WASD/click-to-move) or project/unproject 3D coordinates and screen pixels. Actions: generate_inputs, project_screen, unproject_ray. Read-only: generates Playwright inputs, does not press keys. Returns {ok, action, inputs[]|screen_coords|ray}. Use generate_game_inputs instead of simulate_movement when translating 3D trajectories into Playwright browser automation commands.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Action to perform (default: generate_inputs) | |
| camera | No | Camera state for projection / click-to-move | |
| project | No | Optional project identifier | |
| screen_x | No | Screen pixel X coordinate for screen_to_world unprojection | |
| screen_y | No | Screen pixel Y coordinate for screen_to_world unprojection | |
| viewport | No | Browser viewport dimensions | |
| direction | No | Projection direction for projection mode | |
| entity_id | No | Player or target entity ID | |
| waypoints | No | Optional intermediate navigation waypoints | |
| output_format | No | Output format (default: playwright_mcp) | |
| world_position | No | 3D world position for projection or starting point | |
| control_profile | No | Game control key bindings and physical parameters | |
| target_position | No | Destination 3D coordinates | |
| current_position | No | Starting 3D coordinates (auto-resolved from entity_id if omitted) | |
| ground_elevation | No | Ground plane elevation Y for raycast intercept (default: 0) | |
| target_entity_id | No | Target destination entity ID | |
| current_orientation | No | Starting orientation angles |