pie_simulate_input
Run console commands in the active Play-In-Editor (PIE) world to simulate input and drive game testing. Use player index for targeting and optionally enforce an active PIE session.
Instructions
Send a console-command style input to the active PIE world.
This intentionally starts with console commands because they are stable, scriptable, and auditable. Higher-fidelity key/mouse injection can build on top after the PIE loop has enough evidence capture.
Args:
console_command: Console command to execute, such as stat fps
player_index: Local player controller index
require_pie: Fail when no PIE/SIE session is active
Returns: JSON string with command dispatch details.
KB: see knowledge_base/32_AGENT_PLAYABLE_SLICE_RECIPE.md#overview Example: pie_simulate_input(console_command="Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| require_pie | No | ||
| player_index | No | ||
| console_command | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |