read_collection
Retrieve documents from a MongoDB collection with optional filtering, sorting, and pagination.
Instructions
Read documents from a MongoDB collection with filtering and pagination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Number of documents to skip for pagination | |
| limit | No | Maximum number of documents to return (max 1000) | |
| sort_by | No | Field name to sort by (optional) | |
| filter_query | No | JSON string with MongoDB filter query (optional) | |
| collection_name | Yes | Name of the collection to read from |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||