mediawiki_get_sections
Retrieve the table of contents or specific section content from a MediaWiki page. Use to navigate page structure or get targeted content.
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 |
|---|---|---|---|
| rationale | No | Optional one-sentence explanation of why you are calling this tool. Used for audit trails when present. | |
| 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' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| page_id | Yes | ||
| sections | No | ||
| section_content | No | ||
| section_title | No | ||
| format | No | ||
| message | No |