Search the classical Islamic library
search_librarySearch a Maktabah al-Shamela library of 8,594 classical works and return passages with the book, author, printed edition page and the verbatim Arabic. Each passage also carries its edition, editor and publisher when the library records them, and a sourceUrl on shamela.ws. Runs an exact-phrase pass first and falls back to a token search, reporting which one answered. A scope is REQUIRED: unscoped ranking in this corpus is by term frequency, which surfaces a poetry anthology above a hadith collection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum passages to return (max 10). | |
| query | Yes | Arabic search text. A quoted wording works best; a topic also works. | |
| scope | Yes | hadith-primary — The eight primary hadith collections, edition-pinned; tafsir-canonical — Canonical tafsir — Ibn Kathir, al-Tabari, Ibn al-Jawzi first; fiqh-hanafi — Hanafi fiqh (+ usul, comparative); fiqh-maliki — Maliki fiqh (+ usul, comparative); fiqh-shafii — Shafi'i fiqh (+ usul, comparative); fiqh-hanbali — Hanbali fiqh (+ usul, comparative); fiqh-comparative — All four schools plus comparative and fatwa collections; aqeedah — Creed and sects; hadith-sciences — Hadith commentary, takhrij and the sciences of hadith; tafsir — The whole tafsir shelf and Quranic sciences; seerah — Prophetic biography, history and biographical dictionaries; lugha — Arabic language, lexicons, grammar and adab |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Present only when the result needs a caveat. | |
| scope | Yes | ||
| passages | Yes | ||
| totalMatches | Yes | ||
| booksSearched | Yes | ||
| relaxedToTokens | Yes | True when the exact phrase was not found and a looser word search answered. |