MediaWiki
mediawikiGet Wikipedia content directly: fetch articles by title, search full-text, and resolve footnotes and citations.
Instructions
Search and retrieve content from Wikipedia and other MediaWiki sites.
Use this for direct Wikipedia access without resorting to web_search with site: filters. Fetches articles by title (no URL guessing), runs native full-text wiki search, and resolves footnotes/inline citations on a specific article. Wikipedia URLs are also handled automatically by web_fetch_incisive.
Actions: page, search, references.
PARAMETER SPLIT: unlike other dedicated tools, this one uses two primary parameters:
title= for 'page' and 'references' (article identifier: title or URL)
query= for 'search' only (search terms) The dispatcher will reject mismatches with a specific error.
Query formats:
page: title (e.g. "Gödel's incompleteness theorems") or full Wikipedia URL. Supports section=, search= (within-page BM25), and slices= for targeted extraction.
search: keywords (e.g. "quantum entanglement"). Supports MediaWiki search operators.
references: title identifying the page; supply footnotes=[1,2] and/or citations=["#CITEREFFoo2005"] to resolve numbered footnotes and/or inline author-date citations. Both can be passed in one call.
search= operators (tantivy query language):
foo bar — match any term (whitespace is OR)
+foo +bar — require both terms
foo -bar — exclude 'bar'
"exact phrase" — adjacent words in order
"some words"~3 — phrase with up to 3-word gaps
(foo OR bar) baz — grouping + AND/OR/NOT
foo~ — fuzzy match (edit distance) Matching is case-insensitive; no stemming (search for both 'prompt' and 'prompts' if you want either). Stray punctuation in natural-language queries is silently dropped.
Wiki instance via wiki= parameter:
Language code: "en" (default), "de", "simple", "zh-yue", "pt-br"
Sister project: "commons", "wikidata", "meta", "species"
Hostname/URL: "en.wikipedia.org", "https://wiki.archlinux.org"
Ignored when title= is a full URL (URL wins)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wiki | No | Wiki instance: language code ("en", "de", "simple", "zh-yue"), sister-project alias ("commons", "wikidata", "meta", "species"), hostname ("en.wikipedia.org"), or full URL ("https://wiki.archlinux.org"). Default "en" (English Wikipedia). Ignored when title= is a full URL. | en |
| limit | No | Maximum search results to return (default 10, max 50). | |
| query | No | Search terms — required for the 'search' action. Supports MediaWiki's native search operators. | |
| title | No | Page identifier — article title (e.g. "Gödel's incompleteness theorems") or full URL. Required for 'page' and 'references' actions. When a full URL is supplied, the wiki= parameter is ignored. | |
| action | Yes | The operation to perform. page: fetch a Wikipedia/MediaWiki article by title or URL. search: native full-text search across articles. references: resolve numbered footnotes and/or inline author-date citations on a specific article. | |
| offset | No | Starting position for search pagination. | |
| search | No | Within-page BM25 keyword search for the 'page' action — distinct from action='search' which does full-text wiki search across all articles. | |
| slices | No | Slice index or list of indices to retrieve from a cached page (page action only). | |
| section | No | Section name or list of section names to extract (page action only). Matches heading text. | |
| citations | No | Inline author-date CITEREF key(s) to resolve for the 'references' action. Accepts '#CITEREFFoo2005', 'CITEREFFoo2005', or bare 'Foo2005'. | |
| footnotes | No | Numbered footnote(s) to retrieve for the 'references' action. Accepts an int or list of ints matching the [^N] markers in rendered page content. | |
| namespace | No | MediaWiki namespace for search: 0=Article (default), 1=Talk, 4=Project (Wikipedia:), 14=Category, 100=Portal. | |
| max_tokens | No | Limit on content length in approximate token count (default 5000). |