query_documents
Query Sanity content with GROQ filters. Retrieve documents by specifying filter conditions, projections, and pagination for efficient data access.
Instructions
Query documents from Sanity using GROQ query language
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for paginated results (starts at 1) | |
| filter | Yes | The GROQ filter condition to apply (e.g., "_type == \"post\" | |
| params | No | Optional parameters for the GROQ query | |
| pageSize | No | Number of results per page | |
| projection | No | The fields to include in the result | ... |
| perspective | No | Optional perspective to query from: "raw", "drafts", "published", or a release ID | raw |