Analyze RTL/LTR direction
analyze_directionResolve the right-to-left / left-to-right structure of mixed Hebrew text: base direction, whether it mixes directions, dominant language and script, and the runs to render, where every left-to-right unit (a Latin term, a price, a range such as 10–20%, a date, a model number) stays whole. Send one text, or fields (a map of name → string, up to 100) to analyze a whole record at once. base: auto (default), ltr or rtl. Deterministic and free: no model, no character quota.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_direction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Paragraph direction to resolve against. `auto` (default) uses the first strong letter. | auto |
| text | No | A single string, up to 20,000 characters. Send this or `fields`. | |
| fields | No | A map of field name → string, up to 100 fields and 20,000 characters in total. Send this or `text`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Present when the request sent `fields`: one analysis per field name. | |
| analysis | No |