Get Wikipedia Article
wikipedia_get_articleFetch article content as clean plain text. Without section_index: returns the full article with == Section == markers preserved for structure — or, when the article exceeds the size budget, a compact section outline (truncated: true) that points to wikipedia_get_sections plus a section_index read instead of the full text. With section_index (from wikipedia_get_sections): returns that section and every subsection nested under it, each heading above its own body. section_index 0 is the lead section, the text above the first heading, which is the full prose wikipedia_get_summary returns only a truncated fragment of. Section-targeted reads are faster and smaller when only part of the article is needed. Both paths keep superscripts and subscripts apart from the text beside them (10²³, H₂O), render formulas as their TeX, render code samples as fenced blocks with their indentation intact, and render list items as "- " or numbered "N." lines indented two spaces per nesting level, the indent capped at 16 levels. A section read also renders data tables as pipe-delimited rows (header row first) and infoboxes as "label: value" lines; a table too large to include leaves a "[table omitted: N rows (table T)]" marker. Pass table_index: T with section_index to read only that table in complete row pages whose table text fits within 40,000 UTF-8 bytes on both surfaces. Follow next_cursor as cursor with the same inputs to continue at the pinned revision; caption/header/delimiter appear once. An indivisible oversized row or first-page caption/header is returned alone with oversized_row: true. The full-article path carries no data tables or infoboxes, so read the section for those. Phylogenetic clade trees render as fenced, indented branches, with unnamed forks preserved; unparseable trees leave "[table omitted: unparseable clade]". Clade trees have no table_index. In a section read, tables used only for layout, such as multi-column lists, keep their content as ordinary text; the full-article path drops them, so read the section for those lists. Page furniture is omitted as well — maintenance banners, sister-project and library-resource boxes, portal bars, and spoken-article notices — while a hatnote naming a related article is kept. Every read returns the canonical article URL and the ID of the revision it was read from, for citation; a full read also returns that revision's timestamp. Redirect pages are followed automatically, and the citation fields name the target article.
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": {
"title": "<title>"
},
"name": "wikipedia_get_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Article title (e.g. "Python (programming language)"). A trailing #fragment is accepted and ignored; the characters < > [ ] { } and | cannot appear in a Wikipedia page name. Special: and Media: titles, and interwiki links such as "wikt:cat", name no page. | |
| cursor | No | Opaque next_cursor from the previous table page. Keep title, language, section_index and table_index unchanged. Empty means the first page. | |
| language | No | Wikipedia language edition code (default "en"). Examples: "fr", "de", "ja". | en |
| table_index | No | 1-based outer wikitable or infobox ordinal in the section. Requires section_index. Returns only that table in complete row pages; nested cell tables have no ordinal. | |
| section_index | No | Section index from wikipedia_get_sections. 0 reads the lead section (Introduction) — the text above the first heading. Omit for the full article. Providing this returns the targeted section plus every subsection nested under it, as plain text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Canonical desktop URL of the article (e.g. "https://en.wikipedia.org/wiki/Eiffel_Tower"), for citing the page rather than composing a URL from the title. | |
| error | No | Present when the call failed. Absent on success. | |
| title | No | Resolved article title. | |
| notice | No | Disambiguation-page guidance, redirect guidance, or disclosure that an optional lookup (TOC verification, the disambiguation check) was unavailable. | |
| pageid | No | Wikipedia page ID. Absent on API parse responses that omit it. | |
| content | No | Plain-text article content. Both full articles and section reads carry == Section == markers above the text each one heads, code samples as ``` fenced blocks, list items as "- " or "N." lines indented two spaces per nesting level, and superscripts and subscripts as Unicode characters (10²³, H₂O), or as ^x / ^(…) and _x / _(…) where a character has none. Section reads also carry data tables as | cell | cell | rows with a | --- | row under the header. When truncated is true, this instead carries a section outline (heading names and byte sizes) plus a pointer to the targeted-read path. | |
| language | No | Language edition queried. | |
| page_type | No | Present only on a disambiguation page — one that lists the articles a title can refer to — and then "disambiguation", the value wikipedia_get_summary reports for it. | |
| truncated | No | True when a full-article read exceeded the size budget and content is a section outline instead of the full text. Always false for section reads and for full articles within budget. | |
| row_offset | No | Zero-based first row position in this page. | |
| table_rows | No | Total rendered rows, including the first header row. | |
| next_cursor | No | Pass unchanged as cursor with the same table request to read the pinned revision. Absent on the final page. | |
| revision_id | No | ID of the revision the content was read from. "https://<edition>.wikipedia.org/w/index.php?oldid=<revision_id>" is a permanent link to exactly that version. | |
| table_count | No | Available outer data tables in the pinned section. | |
| table_index | No | Selected table ordinal, for table reads only. | |
| content_type | No | Content type: "full_article" or "section". | |
| last_modified | No | ISO 8601 timestamp of that revision, for dating the content. Full-article reads only; a section read carries none. | |
| oversized_row | No | True when an indivisible row or first-page caption/header exceeds the 40,000-byte table-text budget and is returned alone. | |
| rows_returned | No | Number of complete rows returned in this page. | |
| section_title | No | Section title when section_index was provided — "Introduction" for the lead, which has no heading of its own. Absent for full-article reads. | |
| original_length | No | Character length of the full article text before outlining. Present only when truncated is true. | |
| redirected_from | No | Original alias followed to the resolved article. | |
| table_continued | No | True for a headerless continuation page. | |
| redirect_section | No | Redirect target fragment, or its normalized heading when verified. Explicit section_index still controls the read. | |
| sections_suggested | No | True when content is an outline — use its verified section_index values with wikipedia_get_article, or call wikipedia_get_sections for unindexed entries. Present only when truncated is true. |