Search the GMod wiki
wiki_searchFinds official Garry's Mod wiki pages by name, not content, using exact, prefix, substring, and approximate matches ranked best first.
Instructions
Finds pages of the official wiki (https://wiki.facepunch.com/gmod/) by NAME, not by content: exact, then prefix, substring and approximate matches, best first. Names look like Entity:EmitSound, util.TraceLine, GM:PlayerSpawn, Global.EmitSound, Structures/TraceResult. The page list is downloaded once and cached 24 h (stale cache used offline). Result: {query, results: [{page, score, url}], total_matches, cache}. Then read one with wiki_page. Example: {"query": "TraceLine"}.
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": {
"query": "<query>"
},
"name": "wiki_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Default 20. | |
| query | Yes | ||
| refresh | No | Download the page list again (default false). | |
| 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 | ||
| cache | No | ||
| query | Yes | ||
| results | Yes | ||
| warning | No | ||
| next_call | No | ||
| answered_by | No | ||
| total_matches | Yes | ||
| truncated_note | No | ||
| version_warning | No |