transform_for_japan
Convert Western UI markup into Japanese-ready formats by adjusting name order, adding furigana, restructuring addresses, and applying appropriate keigo based on business context.
Instructions
Transform Western markup into Japan-ready markup. Automatically fixes: name field order (firstName/lastName → 姓/名), adds furigana, splits phone into 3 fields, restructures address to 〒 postal format, translates buttons with appropriate keigo, replaces Western placeholder data with Japanese examples. Shows before/after scores and explains every change.
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": {
"markup": "<markup>",
"context": "<context>"
},
"name": "transform_for_japan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markup | Yes | Western HTML/JSX markup to transform | |
| context | Yes | Business context — determines keigo level and conventions | |
| format | No | Output format | html |
| preserve_styling | No | Preserve existing CSS classes and styles |