Search Desynced game/mod source
search_game_sourceSearch base game and mod Lua/JSON source with regex to locate definitions and usages for informed mod overrides.
Instructions
Regex search over the Lua/JSON source of the base game ('main' package) and all mods in the workspace. Returns file:line matches with context. Use to find how the base game defines/uses something before overriding it in a mod.
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": "search_game_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Regex (case-insensitive). Literal fallback if invalid regex. | |
| max_results | No | ||
| path_filter | No | Substring filter on file path, e.g. 'main/ui', 'ExplorableHacker' | |
| context_lines | No |