#1408·unity-mcp

[Feature]: Play Mode input simulation (manage_input)

Author: RizgarOzanCreated Sep 21, 2026Updated Sep 22, 2026

Right now an agent can enter Play Mode, read the console and take screenshots, but it can't press a key or click a button. So it can start a game but not actually play it. I'd like to add that.

Proposal: a new manage_input tool (Server/src/services/tools/manage_input.py + MCPForUnity/Editor/Tools/ManageInput.cs), only active in Play Mode:

  • key: press / hold for N frames / release (Input System keyboard)
  • mouse: move to a screen position, click
  • ui_click: click a uGUI element by GameObject path through the EventSystem

First version would support the Input System package and uGUI only. The old Input Manager can't really be faked from outside, so I'd leave it out and return a clear error when the project uses it.

Tests: EditMode tests for argument checks, plus a small Play Mode test in the test project that presses a key and checks a component saw it.

Two questions before I start:

  1. Does this fit the project, or would you rather keep tools Editor-only?
  2. One manage_input tool with actions, or split into separate tools?

I already have a docs PR merged here (#1406), so I know the workflow. Happy to adjust the scope.