search_plugin_source
Search the EliteMobs, MagmaCore, BetterStructures, FreeMinecraftModels, CannonRTP and ResurrectionChest source code for a query. By default searches every mirrored repo by file content (grep). MagmaCore contains shared core functionality (Lua engine, base entity tables, scripting helpers) used by every plugin — always check it for hooks, helpers, or context methods that feel like they should be common across plugins. FreeMinecraftModels (freeminecraftmodels) has its own LuaItemTable / LuaPropTable and prop-specific hooks. Use this BEFORE answering plugin-specific questions or generating Lua/YAML files.
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_plugin_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "content" (default) greps file contents; "path" matches file paths. | |
| query | Yes | Text or regex to grep for. Symbol names, hook names, error messages. | |
| repos | No | Optional. Defaults to every mirrored repo. | |
| max_results | No | Default 20. | |
| path_prefix | No | Optional. Restrict to a subdirectory like "src/main/java/". |