List content
list_contentList WordPress posts, pages, or custom post types with filters, search, sorting, and pagination. Returns compact summaries to keep responses concise, with optional full content.
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. | |
| parent | No | Filter to children of this parent ID. | |
| 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. | |
| orderby | No | Which field to sort by. | 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. | |
| 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]}. |