article_sections
Retrieve a Wikipedia article's table of contents with section numbers, headings, and nesting levels. Navigate long pages and decide which sections to read before fetching full text.
Instructions
Get the table of contents (section headings) for a Wikipedia article — section number, heading text, and nesting level. Useful for navigating long articles before committing to the full body via article_extract. Major articles can have 50KB+ of body text; article_sections gives the TOC in a compact numbered list so callers can pick what to read next. Pairs with summary (lead), article_sections (structure), article_extract (full body).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Wikipedia language code (default 'en') | en |
| title | Yes | Article title (e.g. 'Tyrannosaurus' or 'Albert_Einstein') |