lithos_list¶
List knowledge items with optional filters. Useful for browsing, inventory, and sync operations.
lithos_list([path_prefix], [tags], [author], [since], [title_contains], [content_query], [limit], [offset])
Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
path_prefix |
string | — | Return only documents under this path prefix |
tags |
string[] | — | Filter to documents with all of these tags |
author |
string | — | Filter to documents by this author |
since |
string | — | Return only documents updated after this ISO 8601 timestamp |
title_contains |
string | — | Return only documents whose title contains this substring (case-insensitive) |
content_query |
string | — | Full-text filter applied within the listed results |
limit |
int | — | Max results (default: 50) |
offset |
int | — | Pagination offset (default: 0) |
Returns¶
{
"items": [
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"title": "Python asyncio.gather patterns",
"path": "python-asyncio-gather-patterns.md",
"updated": "2026-03-18T14:30:00Z",
"tags": ["python", "asyncio", "patterns"],
"source_url": null,
"derived_from_ids": []
}
],
"total": 1
}
total is the total number of matching items (before limit/offset are applied), useful for pagination.
Examples¶
List all documents¶
result = lithos_list()
print(f"Total documents: {result['total']}")
for item in result["items"]:
print(f" {item['path']} — {item['title']}")
List by tag¶
List documents by a specific agent¶
List recently updated documents¶
from datetime import datetime, timedelta, timezone
yesterday = (datetime.now(timezone.utc) - timedelta(days=1)).isoformat()
result = lithos_list(since=yesterday)
print(f"Updated since yesterday: {result['total']}")
Paginate through a large KB¶
page_size = 50
offset = 0
all_items = []
while True:
result = lithos_list(limit=page_size, offset=offset)
all_items.extend(result["items"])
offset += page_size
if offset >= result["total"]:
break
List by path prefix¶
Notes¶
lithos_listreturns metadata only — titles, paths, tags, dates. Uselithos_readto fetch full content.- Use
lithos_searchwhen you're looking for documents about a specific topic. Uselithos_listwhen you need to enumerate, audit, or sync. - For tag discovery (what tags exist?), use
lithos_tagsfrom the Graph Tools.