dpreview_search
Fetch the site-wide search results (id, title, url, type, subtype) from the public WordPress REST search endpoint with total counts for a search text. Use dpreview_posts for related data.
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": {
"search": "<search>"
},
"name": "dpreview_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number; the response total_pages says how many exist. | |
| type | No | What to search (default post). Allowed values: post, term, post-format. | |
| search | Yes | Search text. | |
| context | No | view (default) returns the full item; embed returns the short embed form. Allowed values: view, embed. | |
| subtype | No | Comma-separated post subtypes such as post, page, product, press_release (default any). | |
| per_page | No | Items per page, 1 to 100 (upstream default 10). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The tool result payload (shape varies per tool; see each tool's docs resource). |