Get Doc
get_docReads a bounded excerpt from a locally installed markdown page by document path or page UID, using line ranges or a context window around a target line.
Instructions
Read a bounded slice from a locally installed markdown page. Use doc_path or page_uid, and either from_line/max_lines or around_line/before/after.
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": {
"library": "<library>"
},
"name": "get_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Lines to include after around_line (default: 60) | |
| before | No | Lines to include before around_line (default: 30) | |
| library | Yes | Library slug | |
| version | No | Version (defaults to latest installed) | |
| doc_path | No | Canonical markdown doc path (for example reference/react/useRef.md) | |
| page_uid | No | Internal page UID fallback | |
| from_line | No | 1-based inclusive line number to start from | |
| max_lines | No | Maximum lines to return (default: 60) | |
| around_line | No | Anchor line for a bounded context window | |
| line_numbers | No | Include line numbers in the returned excerpt text |