Search the tModLoader API surface
api_searchSearch the installed tModLoader API for a type, field, property, or method by name. Returns signatures straight from the assembly metadata, so results always match the exact version in use.
Instructions
Find a type, field, property or method in the INSTALLED tModLoader.
Args:
query: Part of a name, or a type. cloudAlpha, rain, QuickSpawnItem,
IEntitySource. Case-insensitive.
kind: Narrow to one of type, field, property, method.
limit: How many matches to return, best first.
ANSWERS THE QUESTION YOU HAVE BEFORE YOU WRITE ANYTHING. A compile tells you
exactly whether the call you already wrote is right; it cannot tell you what
is there. Main.maxRaining is only findable if you already suspect the name.
READ FROM THE ASSEMBLY'S OWN METADATA, so it cannot drift from the version installed — which is the failure mode of every wiki page and every model's recollection of an API. It carries no prose, because it is not documentation: it is the public surface, with signatures.
The index is built once per tModLoader version and cached against the DLL it came from, so a game update invalidates it by construction rather than by anybody remembering to. The first call after an update pays a few seconds.
Needs a .NET SDK, because the indexer is a small C# tool — it reads metadata without loading or running the game assembly. Without one this refuses and says so, rather than answering from a stale or absent index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| limit | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indexed | Yes | ||
| matches | Yes | ||
| truncated | Yes |