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

Method get_document

pageindex/client.py:220–222  ·  view source on GitHub ↗

Return document metadata JSON.

(self, doc_id: str)

Source from the content-addressed store, hash-verified

218 doc['pages'] = full['pages']
219
220 def get_document(self, doc_id: str) -> str:
221 """Return document metadata JSON."""
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)."""

Callers 2

get_documentFunction · 0.80

Calls 1

get_documentFunction · 0.70

Tested by

no test coverage detected