get_document
Retrieve a document's metadata, size, and structure-first flag to decide whether to read it directly or inspect its structure before reading.
Instructions
Get one document's metadata: title, description, frontmatter, size (lines, tokens) and read_structure_first (true for documents over 15000 tokens). Use it to decide how to read the document: small documents can be read directly from their top-level nodes, large ones need get_document_structure() first.
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": {
"doc_path": "<doc_path>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_path | Yes | Library-relative path of the document, copied verbatim from a browse_documents() or search_documents() result (case-sensitive, include the extension). Example: "guides/setup.md". Never construct one. |