drupal_list_nodes
Retrieve a paginated list of Drupal nodes filtered by content type (bundle), with optional filters, sorting, and field selection via JSON:API.
Instructions
List nodes of a given bundle (content type). Returns a paginated set of nodes with their attributes flattened. Default sort is by created date desc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bundle | Yes | Content type machine name (e.g. "article", "page") | |
| filter | No | Optional filter object. Shortcut form: { field_name: { value: 'x', operator: '=' } } or { field_name: 'x' }. Pre-encoded form: { 'filter[status][value]': 1 } also accepted. | |
| sort | No | Sort spec (e.g. "-created", "title"). Default "-created". | |
| limit | No | Page size (default 25) | |
| offset | No | Pagination offset | |
| include | No | Relationships to include (e.g. "field_category" or ["field_image","uid"]) | |
| fields | No | Sparse fieldsets keyed by JSON:API type, e.g. { "node--article": ["title","field_summary"] } |