run_lua
Execute arbitrary Lua code inside a running LÖVE2D game to modify behavior in real time or inspect internals.
Instructions
Execute arbitrary Lua code in the game context
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": "run_lua"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The Lua code to execute |