Roblox Run Code
roblox_run_codeSend and execute Luau code within Roblox Studio using edit or playtest modes, with configurable wait for response.
Instructions
Send a Luau code execution request through the Studio-side companion runtime boundary.
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": {
"code": "<code>"
},
"name": "roblox_run_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Luau code to execute through the Roblox runtime bridge. | |
| mode | No | Execution mode for the runtime request. | edit |
| waitForResponseMs | No | How long to wait for a runtime response before returning queued status. |