firestore_query
Run structured Firestore queries across one collection or collection groups with where filters, ordering, and limits, returning matching documents as plain JSON.
Instructions
Run a structured query over one collection, or with collectionGroup over every collection with that id (Firestore runQuery): optional where filters, ordering and limit; returns matching documents as plain JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum documents; default 50 | |
| where | No | Filters combined with AND | |
| orderBy | No | Sort keys | |
| database | No | Firestore database id; default (default) | |
| collection | Yes | Collection path, e.g. users or users/alice/posts; with collectionGroup a collection id (posts) or a path whose parent bounds it | |
| collectionGroup | No | Collection-group query: every collection with the last segment's id at any depth under the parent (the database root for a bare id, e.g. posts; users/alice/posts for one document's descendants) |