get_wiki
Fetch GitLab wiki page content, a structured table of contents, or only a specific heading section to save context and target exact documentation.
Instructions
Get wiki page content, structured Table of Contents (toc_only), or a specific chapter/section by heading
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Wiki page slug or title (e.g. 'home' or 'architecture#database-schema') | |
| section | No | Optional chapter/heading title or anchor (e.g. 'Data Model' or '#data-model') to extract only that section | |
| toc_only | Yes | If true, returns only the structured Table of Contents (saves thousands of tokens) | |
| max_length | No | Optional max character length to truncate full content to | |
| project_id | Yes | Project numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically. |