wp_search_site
Search WordPress posts, pages, and media by term, optionally filtering by content type to find specific site content.
Instructions
Performs a site-wide search for content across posts, pages, and media with comprehensive results and metadata.
Usage Examples:
• Search everything: wp_search_site --term="WordPress"
• Search posts only: wp_search_site --term="tutorial" --type="posts"
• Search pages: wp_search_site --term="about" --type="pages"
• Search media: wp_search_site --term="logo" --type="media"
• Find specific content: wp_search_site --term="contact form"
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": {
"term": "<term>"
},
"name": "wp_search_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. | |
| term | Yes | The search term to look for. | |
| type | No | The type of content to search. |