wp_search_posts
Search WordPress posts by keyword on a specified site and return paginated results. Use it to locate relevant posts; for advanced filters, use wp_list_posts.
Instructions
Search posts by keyword (shortcut; wp_list_posts has every filter)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"search": "<search>"
},
"name": "wp_search_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| site | Yes | Site id (see list_sites) | |
| search | Yes | Search term | |
| per_page | No | Results per page (max 100) |