search_docs
Search WordPress developer documentation by query and category to retrieve relevant references, titles, URLs, and content summaries for coding tasks.
Instructions
Search WordPress developer documentation (developer.wordpress.org). Returns relevant documentation chunks with titles, URLs, and content summaries. Use specific search terms for best results. Categories: reference, handbook, code-reference, plugins, themes, rest-api, block-editor, all.
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>",
"conversationId": "<conversationId>"
},
"name": "search_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (1-20). Defaults to 5. | |
| query | Yes | Search query for WordPress documentation. Be specific, e.g. 'register custom post type', 'enqueue scripts', 'block.json attributes'. | |
| category | No | Category to filter documentation search. Defaults to 'all'. | all |
| conversationId | Yes | The conversation ID obtained from learn_wordpress_api. |