List content
list_contentList WordPress content by type with filtering, search, ordering, and pagination. Returns compact summaries to avoid flooding; request full content only when needed.
Instructions
List items of any content type — posts, pages, or a custom post type — with filtering, search, ordering and pagination. Returns compact summaries by default so a listing never floods the context; pass full_content: true only when you genuinely need bodies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Which page of results to return. | |
| slug | No | Filter by exact slug. | |
| tags | No | Tag IDs to include. | |
| type | No | Content type slug (post, page, or a CPT such as "product"). Run discover_content_types if unsure. | post |
| after | No | Only items published after this ISO 8601 date. | |
| order | No | Sort direction. | desc |
| author | No | Filter to one author's user ID. | |
| before | No | Only items published before this ISO 8601 date. | |
| fields | No | Return only these top-level fields, overriding the default summary shape. Also sent as _fields so WordPress returns less. | |
| parent | No | Filter to children of this parent ID (0 for top-level items). | |
| search | No | Free-text search across title and content. | |
| status | No | Filter by status: publish, draft, pending, private, future, trash, or "any". Anything other than publish requires authentication. | |
| sticky | No | Posts only: true for only sticky posts, false to leave them out. | |
| exclude | No | Leave out these IDs. | |
| include | No | Only these IDs. | |
| orderby | No | Which field to sort by. "relevance" requires `search`; "include" requires `include`. | date |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| per_page | No | How many results per page (WordPress caps this at 100). | |
| categories | No | Category IDs to include. | |
| full_content | No | Include the full content body of each item. Off by default — listings are for finding things. | |
| modified_after | No | Only items modified after this ISO 8601 date. | |
| taxonomy_filters | No | Filter by any custom taxonomy, keyed by REST base, e.g. {"product_cat": [12]}. |