_navigate_schema("ontology_navigate","Get question-related chunks from the given documents catalog (tree / page index / mind map). It always follows dataset navigation."),
"mindmap_navigate",_navigate_schema("mindmap_navigate","Get question-related chunks from the document's mindmap"),mindmap_navigate,requires_compilation=True,compilation_type="mindmap"
"Find the documents most relevant to the question via the dataset map; returns their document IDs (later navigation/exploration tools are automatically scoped to them).",
_inspector_schema("open_context","Expand the original context around a chunk",{"chunk_id":{"type":"string"},"width":{"type":"integer","description":"Number of characters to expand"}}),
_inspector_schema("compare_sources","Compare multiple chunks to find common points and contradictions",{"chunk_ids":{"type":"array","items":{"type":"string"}}}),
compare_sources,
)
register_tool(
"inspector_grep_within",_inspector_schema("grep_within","Search for an exact keyword or pattern within a document",{"doc_id":{"type":"string"},"pattern":{"type":"string"}}),grep_within
"request_adjacent","Get adjacent entries before or after a chunk",{"chunk_id":{"type":"string"},"direction":{"type":"string","enum":["prev","next"]},"count":{"type":"integer"}}