sd_list_collections
List sub-collections in a database to explore its structure and identify collection names for querying digital scholarly editions.
Instructions
List available sub-collections in the database.
PURPOSE: Explore the database structure and find available collections.
WHEN TO USE:
User wants to know what data is available
Exploring the database structure
Finding the correct collection name for other queries
Args: parent: Parent collection path (relative to data_path). Empty = root.
Returns: Collection object with path, collections list, and document_count
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full path to the collection | |
| collections | No | List of subcollections | |
| document_count | Yes | Number of documents in the collection |