run_lua_script
Run MAME Lua autoboot scripts headlessly to automate reverse engineering tasks such as memory tracing, input injection, and ROM auditing.
Instructions
Run a caller-supplied MAME Lua autoboot script headlessly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | MAME working directory. Defaults to MAME_CWD or current directory. | |
| frames | No | Frame budget used to calculate safety seconds. | |
| system | No | MAME machine short name. Defaults to MAME_SYSTEM. | |
| mameExe | No | MAME executable. Defaults to MAME_EXE or `mame`. | |
| rompath | No | ROM search path. Defaults to MAME_ROMPATH. | |
| workdir | No | Generated-script/log directory. Defaults to MAME_WORKDIR or <cwd>/.mame_mcp. | |
| scriptPath | Yes | Lua script path. | |
| timeoutSec | No | Process timeout in seconds. |