WordPress: Wp db search
wordpress_specialist_wp_db_searchSearch WordPress posts and products by full-text query with optional post type and status filters, returning matching IDs, titles, snippets, and URLs.
Instructions
[UNIFIED] Full-text search across post / product content using WP_Query with s=$query. NEVER raw SQL (S-25). Returns {query, limit, count, hits: [{id, post_type, status, title, snippet, url, modified}]}. Sanitises query via sanitize_text_field server-side; client caps it at 200 chars. limit defaults to 20, max 100. Optional post_type (string or array) and status (string or array) filters. Non-readable posts (private / draft from other authors) are filtered out by WP_Query's own posts_clauses — same gate the WP search page uses. Requires Airano MCP Bridge v2.18.0+ and manage_options.
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>",
"query": "<query>"
},
"name": "wordpress_specialist_wp_db_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| limit | No | ||
| query | Yes | ||
| status | No | ||
| post_type | No |