Search the library
searchFind passages, hadith and works of Bayān's library. Each passage or hadith comes with its ref, its citation and its public url.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | What to find: passages, hadith, works. | |
| limit | No | Hits to return. | |
| query | Yes | Words to find, in Arabic, English or French. | |
| works | No | Restrict passages and hadith to these works (slugs from lookup_work). | |
| language | No | Language of titles and of the translation attached. | en |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hits | Yes | ||
| query | Yes | ||
| semantic | Yes | Whether the semantic stage took part; false means words only. |