read_doc
Retrieve full documentation pages or specific sections by path and heading anchor. For large pages, returns an outline to select a subsection; tables are delivered in numbered parts.
Instructions
Read a documentation page, or one section of it.
path is what search_docs returns, e.g. "claude-code/en/hooks". Pass
section (a heading or its anchor, at any depth) to read just that part —
required for very large pages, which otherwise return an outline to choose
from.
A section that is one huge table — en/settings § Available settings,
en/env-vars § Variables — has no subheadings to outline, so it comes back
in parts, each carrying the table's header row. The reply names the part
count; pass part=2, part=3… for the rest, or use grep_docs to pull a
single entry out of it.
The Related pages footer is the page's own outgoing cross-references — what its authors thought you should read next. Follow them when the question spans more than the one page you happened to land on.
Indexed sources: claude-code (Claude Code), codex (OpenAI Codex), cursor (Cursor), opencode (opencode), xai (xAI / Grok).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | ||
| path | Yes | ||
| source | No | One of: claude-code (Claude Code), codex (OpenAI Codex), cursor (Cursor), opencode (opencode), xai (xAI / Grok) | |
| section | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |