Execute Code in the Roblox Game Client
executeRun Luau code in the active Roblox game client for side effects only; does not return output. Use separate tool to retrieve data.
Instructions
Execute Luau in the active Roblox client without returning output. Use get-data-by-code instead when you need returned values.
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": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code to execute in the Roblox Game Client. This tool does NOT return output - use get-data-by-code if you need to retrieve data. | |
| threadContext | No | The thread identity to execute the code in (default: 8, normal game scripts run on 2) |