diff --git a/server.py b/server.py index 5c2f00a..b2be997 100644 --- a/server.py +++ b/server.py @@ -164,13 +164,21 @@ def list_vault( Args: vault_name: Name of the vault (subdirectory name under vaults root) - path: Relative path within the vault. Empty string = vault root. + path: Subfolder inside the vault. Omit or pass "" for vault root. + NOT the vault name — that's vault_name. Examples: + "" or omit = vault root, "NPCs" = vault/NPCs/, "NPCs/Hostile" = deeper. recursive: If True, list all nested contents recursively. include_files: Include files in results (default True). include_directories: Include directories in results (default True). file_extensions: Optional filter — only return files with these extensions (e.g. ['.md', '.canvas']). Case-insensitive. + Usage: + list_vault("obsidian-skt") → root listing + list_vault("obsidian-skt", "") → same, explicit + list_vault("obsidian-skt", "NPCs") → subfolder + list_vault("obsidian-skt", "", True) → recursive from root + Returns: directories: list of subdirectory info dicts files: list of file info dicts (name, path, type, size, modified)