Check Arabic, Urdu or Persian text
check_arabic_textCheck Arabic, Urdu or Persian text for problems that break PDFs, search and copy-paste: pre-shaped glyph characters and reversed letter order (typical of text copied out of a broken PDF), Persian or Urdu letters mixed into Arabic and the reverse, hidden direction-control characters, mixed digit systems, and characters the fonts cannot print. Returns the issues in English and Arabic and, when a safe fix exists, a fixed version of the text for the user to review. Deterministic rules; no AI.
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>"
},
"name": "check_arabic_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to check. | |
| language | No | Language of the text, or 'auto'. | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| issues | Yes | ||
| language | Yes | ||
| fixed_text | No | A corrected version of the text, when a safe fix exists. | |
| suggested_font | No | ||
| arabic_script_share | No |