Tower of Babel

v1.1.0
io.github.Joshuv-AI/tower-of-babel Checked 4 days ago Published 10 days ago

Search and read 2.5M+ public-domain full texts from the Tower of Babel library.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_works Search works

Search the Tower of Babel public-domain library by title or creator. Results are in catalog order, not relevance-ranked; follow next_cursor until it is null to cover more of the catalog. Read-only.

ParameterTypeDescription
query *stringSearch text, matched as words against title and/or creator.
cursorstringOpaque continuation cursor from a previous call.
fieldstringWhich field the search text is matched against: title only, author (creator) only, or any (both). Defaults to any.
limitintegerMaximum number of works to return in this page (1-50). Defaults to 20.

get_work Get work

Get one work's metadata by its id (artifact id, e.g. us-declaration-of-independence). Read-only.

ParameterTypeDescription
id *stringThe work's artifact id.

list_collection List collection

List works in one collection (PAPERS, DECLASSIFIED, BOOKS, REFERENCE, DOCUMENTS, PODCASTS) in catalog order. Follow next_cursor until null. Read-only.

ParameterTypeDescription
collection *stringThe collection to list: PAPERS, DECLASSIFIED, LAW, BOOKS, REFERENCE, DOCUMENTS, or PODCASTS.
cursorstringOpaque continuation cursor from a previous call.
limitintegerMaximum number of works to return in this page (1-50). Defaults to 20.

list_group List group

List works in a precomputed group: a sacred tradition, a declassified programme, a top author, or a course group. Use the collections endpoint (or the library's group lists) for valid keys. Read-only.

ParameterTypeDescription
group *stringThe kind of group to list: traditions (sacred traditions), programmes (declassified programmes), authors (top authors), or course (course groups).
key *stringTradition/programme key, author slug, or course-group slug.
limitintegerMaximum number of works to return in this page (1-50). Defaults to 20.
offsetintegerNumber of works to skip before returning results, for paging through a group. Defaults to 0.