get_posts
Retrieve WordPress posts with optional filtering and pagination. Filter by status, search terms, order, and page size to find specific content.
Instructions
Retrieve WordPress posts with optional filtering and pagination
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": "get_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default: 1) | |
| order | No | Sort order | |
| search | No | Search posts by title or content | |
| status | No | Post status filter | |
| orderby | No | Order posts by field | |
| per_page | No | Number of posts per page (default: 10, max: 100) |