List posts or pages
list_postsRetrieve WordPress posts or pages newest first, with keyword search, status filtering, and pagination; credentials are required for non-published statuses.
Instructions
List posts or pages, newest first. Supports keyword search, status filter and paging. Non-published statuses need credentials.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| type | No | posts | |
| search | No | Keyword search across title and content | |
| status | No | publish | |
| per_page | No |