Search text
text_searchSearch Arabic (or any) text with normalisation: tashkeel, alef/ya/ta-marbuta, hamza and Arabic-Indic digit variants are ignored, so فَاطِمَة matches فاطمة and ١٢٣ matches 123. mode=words (default) matches whole words, phrase matches any substring, fuzzy tolerates up to max_distance edits per word. Returns exact start/end offsets into the original text plus a context snippet.
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": {
"text": "<text>",
"query": "<query>"
},
"name": "text_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | words = whole-word phrase (default); phrase = any substring; fuzzy = edit-distance per word. | |
| text | Yes | The text to search (the corpus). | |
| query | Yes | What to look for; normalised like the corpus. | |
| max_results | No | Maximum matches to return. | |
| max_distance | No | Edits allowed per word in fuzzy mode (default 1). | |
| context_chars | No | Characters of context on each side of a match. |