Search Files
search_filesSearch a specific instance (by id or exact name) for files whose name matches a glob, plus files whose text contains the glob's literal part (so "**/motd" also finds files containing "motd"). Each hit's matched_by says whether its name, its content, or both matched. Names match case-insensitively, and binary files such as .jar only match by name. Leading folder names scope the search: "mods/mek" only looks inside /mods. Use this instead of walking the tree with list_files when you know roughly what a file is called or what is written in it. To search inside one known file, use read_file with contains.
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": {
"instance": "<instance>",
"glob": "<glob>"
},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | Yes | Glob pattern relative to the instance root, e.g. "**/*.properties" or "mods/*mekanism*". A plain string with no glob characters is matched as "**/*<value>*" inside its folder. The response echoes the folder and glob actually searched. | |
| instance | Yes | Instance id (preferred) or exact instance name. |