convert_lean_unicode
Convert Lean 4 backslash notation to Unicode symbols or reverse Unicode symbols to ASCII escapes, making Lean 4 text easier to edit in either format.
Instructions
Convert Lean 4 backslash shortcuts (\forall, \to, \and, \N, <, >, ...) to Unicode symbols or back to ASCII escapes.
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": "convert_lean_unicode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Lean 4 text to convert. | |
| direction | No | Conversion direction (default to_unicode). |