Get data by code
get-data-by-codeExecute Luau code in the active Roblox client and retrieve serialized raw Lua values. Returns data without manual JSON encoding.
Instructions
Execute Luau in the active Roblox client and return serialized raw Lua values. The code must return values; do not manually JSON-encode them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code to execute in the Roblox Game Client (MUST return one or more values). Return raw Lua values - do NOT manually serialize tables or use JSONEncode, the connector handles serialization automatically. | |
| timeout | No | Timeout in milliseconds for the response (default: 15000, max: 120000). Increase for long-running operations like decompiling many modules. | |
| threadContext | No | The thread identity (0–8) to execute the code in (default: 8, normal game scripts run on 2) |