Look at and drive the running game session
godot_gameInspect and control a running Godot game: read the live node tree, get/set properties, call methods, step frames with input, record signals, reload scripts, and check layout, UI, rays, and errors.
Instructions
Ask the game godot_session started. op: tree (the live node tree), get (values now), set (a Node.property), call (a method), eval (a Godot Expression on the scene root), step (run frames with an input timeline counted from this step, sample watch, stop early until a condition holds; the same frame-exact input as godot_play), signals (record them; later steps list when they fired), layout (3D objects: position, size, and whether each rests on, floats above or sinks into what is below, plus scale mistakes), ray (what a physics ray from-to hits), ui (visible controls at window sizes: clipped text, off-screen panels, overlapping buttons, small targets), errors (what the game printed since the last call), reload (load edited scripts into the running game: nodes keep their values and run the new code from the next step; a script that does not compile stays as it was). Every answer ends with the new errors and warnings, runtime errors with their call chain. Time only moves on a step, so the session is deterministic. Use it to try a fix live, reach a state that is hard to reach, or watch a long scenario in parts.
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": {
"op": "<op>"
},
"name": "godot_game"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | what to do | |
| to | No | ray: end | |
| args | No | call: arguments as Godot values | |
| expr | No | eval: the expression, e.g. get_node("Hero").velocity.length() | |
| from | No | ray: start, Vector3(...) or Vector2(...) | |
| node | No | call: node path from the scene root | |
| path | No | project folder, or a file or folder inside it (relative to the server's folder; default: the current project) | |
| root | No | tree and layout: start at this node (default the scene root) | |
| depth | No | tree: levels to show (default 3) | |
| every | No | step: sample every n frames (default: about 10 samples) | |
| files | No | reload: res:// scripts to reload (default: every script changed since the session started or the last reload) | |
| input | No | step: "0 press jump; 10 release jump; 20 hold right 30" | |
| limit | No | tree: nodes to show (default 80) | |
| sizes | No | ui: window sizes such as 1280x720 or 720x1280 (default the size the project sets) | |
| until | No | step: stop at the first frame where this holds, "Hero.is_on_floor() == true" | |
| value | No | set: the new value as Godot writes it, e.g. Vector3(0, 30, 0) | |
| watch | No | get and step: values to read, e.g. "Hero.position", "Hero.is_on_floor()" | |
| frames | No | step: frames to run (default 60) | |
| method | No | call: method name | |
| target | No | set: Node.property | |
| signals | No | signals: Node.signal to record |