get_docs
Retrieve Python documentation pages or specific sections by slug and version. Use an anchor for compact section-only retrieval and paginate large pages with start_index.
Instructions
Retrieve a documentation page or specific section. Provide anchor for section-only retrieval (much cheaper). Pagination via start_index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Page slug (e.g. 'library/asyncio-task.html') | |
| version | No | Python version (e.g. '3.13'). Defaults to latest. | |
| anchor | No | Section anchor for section-only retrieval | |
| max_chars | No | Maximum characters to return | |
| start_index | No | Start position for pagination |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Documentation content in markdown | |
| slug | Yes | Page slug | |
| title | Yes | Page or section title | |
| version | Yes | Python version | |
| anchor | No | Section anchor if section-level | |
| char_count | Yes | Total character count of full content | |
| truncated | No | Whether content was truncated | |
| next_start_index | No | Next start_index for pagination, if truncated |