get_claude_code_doc_content
Read a Claude Code documentation page from a search result URL, fetching live content and removing injected index/widget markup; use an optional sectionId to target a specific section.
Instructions
Read a Claude Code documentation page from https://code.claude.com/docs/en/. Use after search_claude_code_docs with one of the returned page URLs. The page is checked against the live docs index, fetched live with no cached fallback, and its text is returned with the injected index blockquote and widget source removed. The bare page slug as sectionId (the page path without .md, e.g. hooks or agent-sdk/typescript) reads the page intro, the text before the first section, when the page has text before its first section; otherwise the read is NOT_FOUND. The sectionId of a level-2 heading that has level-3 subsections returns only its lead (the text before the first subsection); each subsection has its own sectionId. The changelog page (https://code.claude.com/docs/en/changelog.md) is refused for any read, with or without sectionId; use get_claude_code_changelog.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "get_claude_code_doc_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of a Claude Code documentation page. Must start with https://code.claude.com/docs/en/ and end in .md (as returned by search_claude_code_docs). Example: "https://code.claude.com/docs/en/hooks.md". | |
| sectionId | No | Exact sectionId returned by search_claude_code_docs (format <page-slug>--<heading-slug>[--...][~N]); omit it to read the whole page. The sectionId of a level-2 heading that has level-3 subsections returns only its lead (the text before the first subsection); each subsection has its own sectionId. |