Run a Lua file from disk
run_fileReads a local .lua, .luau, or .txt script file and executes it in the connected Roblox executor without pasting code.
Instructions
Read a .lua, .luau or .txt file from this computer and run it in the connected Roblox executor, like execute_lua but without pasting the code. The path is on the computer that runs the Superbase MCP server (absolute, or relative to its working folder; ~ is the home folder). Files up to 500 KB. The code runs with the executor's full permissions, so only run files the user asked for. Requires the connected state.
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": {
"path": "<path>"
},
"name": "run_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the file on this computer. | |
| client | No | Client id from list_clients, for example c2. Defaults to the client that connected last. | |
| timeout_ms | No | How long to wait for the code to finish (default 15000). |