Search the library

Searches the text of the library books and returns the pages that contain your phrase.

Technical namesearch_library

Searches the books and their footnotes for one or more phrases and returns the best pages, each with a short preview, the book, the author, the volume and the page. You can narrow it to a section, a madhhab, an author, a book or a century. The preview is only for finding the page: quotes come from the page once it is opened.

Parameters9 parameters

You never type these yourself: your assistant fills them in from your request. They are listed here for reference.

NameTypeDefaultDescription
phrasesRequiredstring[]-One or more phrases to look for in the books, up to 8, each up to 300 characters.
categoryOptionalinteger-Section number, to search one section only.
madhhabOptional"hanafi" | "maliki" | "shafii" | "hanbali"-School of fiqh, to search the books of one madhhab only.
authorOptionalinteger-Author number, to search their books only.
bookOptionalinteger-Book number, to search inside one book.
centuryOptionalinteger 1-15-Hijri century of the author's death, 1 to 15.
footnotesOptionalbooleantrueAlso search the footnotes. On by default.
cursorOptionalstring-The next_cursor from the previous result, to continue.
limitOptionalinteger 1-20-Results per call, 1 to 20. Default 10.

The library

Once connected, your assistant can also search the library books and give the book and page for anything it quotes.