isolate_foreign
Fix RTL rendering of foreign text in Arabic content by wrapping phone numbers, URLs, and Latin words with Unicode bidi isolates.
Instructions
Wrap foreign/LTR runs (phone numbers, Latin text, URLs) inside Arabic text with Unicode bidi isolates so they render correctly in RTL contexts (e.g. "اتصل على +1 (555) 234-5678 الآن").
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": "isolate_foreign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The mixed-direction text to process. |