Search the file index
search_indexFind files and folders by name, extension, or size in an offline metadata index; use it for read-only lookups across folders indexed earlier.
Instructions
Find files and folders by name, extension and size in the offline metadata index. Use when: looking up names fast across folders indexed before. Instead: walk_tree for the live tree (slower, never stale); search_content for contents. Requires: an index from build_index or the axross app. Behavior: read-only; results can be stale. Searches only the rows of backend (the default backend if omitted). The given filters must all match; none gives every indexed entry. Pages with offset and max_results. Time limit: 15 s. Returns: {entries: [{backend_id, path, name, size, is_dir, modified}], indexed (false: no index yet - no entries may mean that), truncated (more after this page)}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ext | No | File extension, matched whole in any case; a leading dot is ignored, e.g. 'pdf'. | |
| path | No | Only entries anywhere below this folder (absolute, or relative to the MCP root). | |
| offset | No | Matches to skip, for the next page: the previous offset + max_results. | |
| backend | No | Backend id from list_backends; omit for the default. | |
| pattern | No | A substring of the file name (not a regex), matched ignoring case and Unicode normalisation, e.g. 'report' finds 'Q3_Report.pdf'. | |
| max_size | No | Largest size in bytes, inclusive; omit for no upper bound. Below min_size nothing matches. | |
| min_size | No | Smallest size in bytes, inclusive. | |
| path_b64 | No | path as base64 of its raw bytes, for non-UTF-8 names; replaces path. | |
| max_results | No | Most results to return. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | ||
| indexed | Yes | false: this backend has no index rows at all | |
| truncated | Yes | true: more matches after this page (offset + max_results) |