list_files
List disk files and indexed data or URL sources with ingestion states to identify what needs syncing or reindexing.
Instructions
List files found on disk under the document roots, plus indexed data/url sources.
Each disk file is reported with a state: "ingested" (index matches disk), "stale" (changed on disk since it was indexed), "stale_scheme" (unchanged on disk, but indexed under an older chunking scheme, so its vectors are not comparable with current ones), "stale_pages" (an unchanged PDF indexed before page numbers were stored, so its results carry none), "not_ingested" (never indexed), or "unreadable" (indexed and still on disk, but of a type this installation cannot read because an optional extra is absent — images need [ocr]). Everything but "ingested" and "unreadable" needs a sync_start; an "unreadable" source is kept as indexed and no sync can refresh it here. "stale_scheme" is the per-source view of what status reports as staleChunkCount. Data and url sources have no disk state to compare against, so they are "ingested" or "stale_scheme".
unlistedFolders names each folder the scan could not see into (no read permission, a missing or unmounted drive), with what to do about it. Indexed files under one are listed as "unlisted": still indexed and searchable, not checked against the disk.
ignored, present when a .miniragignore rule excluded anything,
counts the files and folders it left out, a folder once.
labels, dateFrom and dateTo filter as in query_documents;
sort="date" lists newest first, documents without a date last. Rows
carry labels and date when present.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | ||
| scope | No | ||
| dateTo | No | ||
| labels | No | ||
| dateFrom | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||