sd_list_collection_contents
List files and subcollections in any collection for a quick overview of available content. Explore the structure of digital scholarly editions without parsing document contents.
Instructions
List files and subcollections in a collection.
PURPOSE: List files and subcollections without parsing document contents.
WHEN TO USE:
User wants to see what's available in a collection
Exploring collection structure
Fast overview of files and folders
WHEN NOT TO USE:
For document metadata → use get_file_info() afterward
For specific keyword search → use edition-specific search tools
For full document details → use get_document tools
Args: collection: Collection name/path (relative to data_path). Empty = root. limit: Maximum number of files to return ctx: FastMCP Context for progress reporting
Returns: Dict with 'collection_path', 'file_count', 'files', and 'subcollections'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| collection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | List of file names | |
| file_count | Yes | Number of files returned (limited) | |
| total_files | Yes | Total number of files in collection | |
| subcollections | No | List of subcollection names | |
| collection_path | Yes | Full path to the collection |