MCPcopy Index your code
hub / github.com/VectifyAI/PageIndex / get_document_structure

Method get_document_structure

pageindex/client.py:224–228  ·  view source on GitHub ↗

Return document tree structure JSON (without text fields).

(self, doc_id: str)

Source from the content-addressed store, hash-verified

222 return get_document(self.documents, doc_id)
223
224 def get_document_structure(self, doc_id: str) -> str:
225 """Return document tree structure JSON (without text fields)."""
226 if self.workspace:
227 self._ensure_doc_loaded(doc_id)
228 return get_document_structure(self.documents, doc_id)
229
230 def get_page_content(self, doc_id: str, pages: str) -> str:
231 """Return page content for the given pages string (e.g. '5-7', '3,8', '12')."""

Callers 2

get_document_structureFunction · 0.80

Calls 2

_ensure_doc_loadedMethod · 0.95
get_document_structureFunction · 0.70

Tested by

no test coverage detected