Search a site
wp_searchSearch across all site content in a single query, covering posts, terms, and formats. Find items even when you don't know their specific type.
Instructions
Search across all searchable content on a site at once. Faster than listing each post type when you do not know where something lives.
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": {
"query": "<query>"
},
"name": "wp_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Configured site name. Omit to use the default site. | |
| type | No | Restrict to content, taxonomy terms, or formats. | |
| query | Yes | What to search for. | |
| subtype | No | Restrict to a post type slug. | |
| per_page | No |