mediawiki_search_and_read
Search wiki and read top results in one call, eliminating the need for separate search and read steps.
Instructions
Search wiki AND read the top result(s) in a single call.
USE WHEN: User asks a question about wiki content. This is the fastest path from question to answer — eliminates the search-then-read round trip.
NOT FOR: Known page titles (use mediawiki_get_page directly). Not for listing search results without reading (use mediawiki_search).
PARAMETERS:
query: Search text (required)
read_count: How many top results to read (default 1, max 5)
format: "wikitext" (default) or "html"
RETURNS: Full content of top result(s) plus remaining search hits as summaries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query text | |
| read_count | No | Number of top results to read (default 1, max 5) | |
| format | No | Content format: 'wikitext' (default) or 'html' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| total_hits | Yes | ||
| pages | Yes | ||
| other_hits | No | ||
| message | Yes |