Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nnaridz/RbxGenie/llms.txt
Use this file to discover all available pages before exploring further.
Description
Executes Luau code during play or server mode, capturing output, errors, and results. Automatically starts the specified mode, runs the code, stops the mode, and returns comprehensive results. Ideal for integration tests and automated playtesting.Endpoint
Parameters
The Luau code to execute during play mode
Maximum execution time in seconds. Defaults to 100 seconds.
The mode to run in:
"play" or "server". Defaults to "play".Response
Whether the code executed successfully without errors
The string representation of the return value (if successful)
Error message if the code failed or timed out
Array of all captured log messages during execution
Message level:
"output", "info", "warning", or "error"The log message content
Timestamp relative to execution start
Array of error and warning messages only
Execution time in seconds
Whether the execution exceeded the timeout
Examples
Simple test
Run in server mode
With custom timeout
Test with error
Timeout
Notes
- Studio must not be running when calling this tool
- The tool automatically starts and stops the specified mode
- A test runner script is temporarily created in ServerScriptService
- Messages prefixed with
[RbxGenie]are filtered from logs - Includes a watchdog timer that force-stops if timeout+5s is exceeded