simulate_input
Test Godot scenes headlessly by simulating keyboard and mouse input events with configurable keycodes, buttons, and press durations.
Instructions
Inject a keyboard or mouse input event while a scene runs headlessly.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scenePath": "<scenePath>",
"eventType": "<eventType>"
},
"name": "simulate_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keycode | No | ||
| pressed | No | ||
| eventType | Yes | ||
| scenePath | Yes | ||
| buttonIndex | No | ||
| projectPath | No | Optional absolute Godot project path. Defaults to the project selected in Godot MCP Toolkit. | |
| durationFrames | No |