find_paths
Locate folder paths in indexed documents by fuzzy keyword match on the directory part of the file path. Returns top folder candidates ordered by file count — pass a distinctive segment of any returned path back to search as path_glob (substring-matched, so *xinWeChat* works as well as a full prefix). Each candidate also carries a ready-to-use path_glob field — pre-quoted for folder names containing glob metacharacters (* ? [); copy it verbatim to match that folder literally. Cloud results include the source library reference (cloud://owner/slug); pass it as library to your follow-up search so the glob is scoped to the right backend.
Call BEFORE search when the user names a container with a fuzzy or cross-language word ("in my WeChat", "Notion notes") and the on-disk path is unknown. Pass multiple variants in patterns in one call (e.g. ["WeChat", "微信", "wxid"]) — patterns are OR-ed and substring-matched. limit caps candidates (default 10, max 50). Skip this tool for pure content queries or file-type filters — call search directly.
Scope: omit library to search paths across your local indexed content (default — Desktop tunnel must be online; cloud libraries are NOT included). Pass library="local://<id>" to scope to one local library, or library="cloud://<owner>/<slug>" to scope to a linked cloud library. To search paths in cloud libraries, call list_libraries first to see what is available, then call find_paths once per cloud library. Note: cloud libraries with a flat structure (no sub-folders) yield no candidates — use search directly instead.
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": {
"patterns": "<patterns>"
},
"name": "find_paths"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of folder candidates to return (default 10, max 50) | |
| library | No | Restrict to a specific library. Use `local://<library-id>` for a local library, or `cloud://<owner>/<slug>` for a cloud library. Plain string is interpreted as a local library name for backward compatibility. Use list_libraries to see available libraries. Omit to search all local indexed documents. | |
| patterns | Yes | Keywords to substring-match against the file path. Multiple keywords are OR-ed — pass cross-language or spelling variants in one call to maximise recall (e.g. ["WeChat", "微信"], ["WeChat", "wxid", "xinWeChat"]). Case-insensitive for ASCII; CJK matches literally. Max 10 patterns; each up to 64 UTF-8 bytes. | |
| output_format | No | Output format. Defaults to "markdown" (human-readable); set to "json" for structured JSON (machine-parseable). Sending `null` or omitting the field both yield the default. |