Check code against a real engine API
re_apicheckValidates GDScript, C# and shader API names against real Godot version snapshots to flag renamed, unknown or too-new classes, methods and members before running Godot.
Instructions
Checks GDScript (and class names in C#, names in shaders) against name-only snapshots of the real Godot API (godot@3, godot@4.3, godot@4.7) plus the official 3→4 rename table. Reports: renamed-class/function/member/pattern (Godot 3 names in Godot 4 code with the Godot 4 replacement: KinematicBody2D, instance(), yield, deg2rad, string connect, export/onready without @), unknown-class/method/member (not in that version: a model-invented or misspelled API, with the closest real name), too-new (exists only in a newer version, or Godot 4 names in a Godot 3 project). Members are checked only where the receiver type is known (extends, typed vars, Class.new(), singletons, parameters with type hints); untyped receivers are skipped, not guessed. The Godot version comes from engine, else from project.godot, else the newest snapshot. Run it on every file an agent wrote before opening Godot.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "re_apicheck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | A .gd/.cs/.gdshader file or a project folder. | |
| limit | No | Max files in the result (default 300). | |
| engine | No | Target: godot@4.7, godot@4.3, godot@3 (or just 4 / 3). Default: project.godot, else newest. | |
| content | No | Code to check instead of path. |