game_eval
Execute GDScript inside a running Godot game to inspect state, trigger behavior, or debug issues. Use return statements to capture values.
Instructions
Execute GDScript in the running game. Use "return" for 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": "game_eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | GDScript code to execute. Use "return" to return values. |