Morse code translator
text_morseEncode text into International Morse code or decode Morse back to text, with automatic mode detection and playback time estimates at a chosen WPM.
Instructions
Translate text to International Morse code and back. Encoding: letters separated by spaces, words by " / "; accents are folded (é → E) and characters without a code are skipped and counted. Decoding accepts . and - plus look-alikes (• · – — _), with words split by /, | or 2+ spaces; unknown codes become #. Encoding also returns the playing time at a given speed (PARIS timing: dot = 1200/WPM ms). No audio. Web version: https://s3eidat.github.io/morse-code/
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": "text_morse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wpm | No | Speed in words per minute for the duration estimate (default 18). | |
| mode | No | "encode" text → Morse, "decode" Morse → text, or "auto" (default): decode if the input only has Morse symbols, spaces, / and |. | auto |
| text | Yes | Text to encode, or Morse code to decode. |