lua_eval
Run Lua scripts inside the Unity Editor to automate scene and play-mode operations, inspect state, or perform custom editor tasks.
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": {
"script": "<script>",
"goal": "<goal>"
},
"name": "lua_eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | ||
| script | Yes | ||
| chunk_name | No | ||
| allow_unbounded | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||