mediawiki_get_sections
Retrieve section structure or specific content from MediaWiki pages. Use to get table of contents or extract particular sections like Installation or References.
Instructions
Get page section structure (TOC) or specific section content.
USE WHEN: User asks "what sections does X have", "show the table of contents", "get the Installation section".
NOT FOR: Full page content (use mediawiki_get_page).
PARAMETERS:
title: Page name (required)
section: Section index to retrieve content (optional; omit for TOC only)
format: "wikitext" (default) or "html" (for section content)
RETURNS: Section headings with indices, or specific section content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Page title to get sections from | |
| section | No | Specific section number to retrieve content for (0 = intro, 1+ = sections). Omit to list all sections. | |
| format | No | Output format for section content: 'wikitext' (default) or 'html' |