browse_documents
Navigate and retrieve documents from a folder tree, drilling into sub-folders level by level. Sort by upload date or semantic relevance to find the right document.
Instructions
Primary document retrieval tool. After orienting with get_folder_structure() (when available), use this for all document-related questions. The bare call returns root-level sub-folders and documents; pass folder_id to drill into a sub-folder level by level. Use sort="relevance" + query for semantic ranking. Do NOT jump to search_documents() first — it is an escalation path, only after browse_documents(sort="relevance") has failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort order. "time" (default) sorts by upload date (newest first); "relevance" orders documents by semantic relevance to `query`. Relevance also works inside the read-only shared folders — pass their folder_id — but at the library root it ranks only your own documents. | |
| limit | No | Number of documents to return per page (1-50, default 10) | |
| query | No | Search query for relevance ranking. Required when sort="relevance"; must be omitted when sort="time". | |
| offset | No | Zero-based pagination offset. Pass the value of `next_offset` from the previous response to fetch the next page. | |
| folder_id | No | Folder scope (default "root"). Pass a specific folder ID to scope into that folder, or "root" to reference the library root. The read-only "shared-with-me" and "following" folders live at the library root — pass one of those ids to browse them. Copy any folder_id verbatim from a browse/tree response, never construct one. Combine with `recursive` to control breadth. | |
| recursive | No | Whether to include documents from descendant folders. When false (default), returns the direct contents of folder_id along with its sub-folders — prefer this for level-by-level exploration so you retain folder hierarchy context. When true, flattens all descendant documents into one list and omits sub-folders — use only when a non-recursive browse of the target folder returned no relevant results and you need to widen the scope, or the user explicitly requests a flat listing. |