Search the live Lua API
api_searchSearch running Garry's Mod realms by substring or glob to confirm which Lua global functions, library functions, and metatable methods actually exist in the current build.
Instructions
Asks each running realm which functions really exist in this game build: global functions, library functions (util.TraceLine) and metatable methods (Entity:EmitSound). Only realms that exist answer: menu always (client mode), client and server only with a map loaded (realms_searched says which answered). Source of truth for realms when the wiki disagrees. Pattern: case-insensitive substring, or a glob with * matched against the whole name. Result: {results: [{name, kind: global|library|method, realms: [...], wiki_page (URL or null)}], count, realms_searched, wiki_index}. wiki_page needs the wiki page list (wiki_search once). Example: {"pattern": "Entity:Emit*"}.
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": {
"pattern": "<pattern>"
},
"name": "api_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Per realm, default 500. | |
| realm | No | Restrict to one realm (default: all available). | |
| pattern | Yes | ||
| instance | No | Optional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| note | No | ||
| count | Yes | ||
| pattern | No | ||
| results | Yes | ||
| warning | No | ||
| next_call | No | ||
| wiki_index | No | ||
| answered_by | No | ||
| truncated_note | No | ||
| realms_searched | No | ||
| version_warning | No |