list_documents
List documents in the LightRAG knowledge base with pagination, status filtering, and sorting. Returns per-document summaries, total count, and pagination info.
Instructions
List documents in the knowledge base, with pagination. This is the tool to use for "how many documents are there" or "list the documents" -- do not conclude the knowledge base is empty from a tool failure; that means LightRAG could not be reached, not that there are zero documents (this is the exact bug this server exists to fix). Returns a trimmed per-document summary (id, file_path, status, chunks_count, updated_at, error_msg if any) plus total_count and has_next.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, 1-based. | |
| page_size | No | Documents per page (10-200). | |
| sort_field | No | Field to sort by. | updated_at |
| status_filter | No | Only return documents in this status. Omit to return documents in every status. | |
| sort_direction | No | Sort direction. | desc |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||