audit_rtl
Detect RTL and bidirectional layout bugs in codebases, including physical margins, alignment, directional icons, and missing root configuration, then preview or apply logical-property fixes.
Instructions
Audits codebase for RTL (Right-to-Left) and bidirectional layout bugs, detecting physical spacing (marginLeft/Right), alignment (textAlign: left/right), directional icons, and missing RTL root configurations, with automated logical property migration.
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": "audit_rtl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | If true, automatically converts physical style and layout properties to logical directional equivalents. | |
| scope | No | Optional list of files or directories to limit the RTL audit to. | |
| dryRun | No | If true (default when fix is true), previews changes via unified diff without modifying files. | |
| projectPath | No | Optional project root directory. Defaults to current working directory. | |
| targetLocales | No | Target locales to evaluate for RTL support (e.g. ['ar', 'he', 'fa']). Defaults to detected target locales. |