{"ok":true,"tool":"Morse Code Translator","operation":"translate-morse","description":"Translate text to Morse code, or Morse code back to text.","method":"POST","endpoint":"/api/morse-code-translator","webUrl":"https://toolhub-5eo.pages.dev/tools/morse-code-translator","parameters":{"type":"object","properties":{"text":{"type":"string","description":"The text or Morse code to translate"},"direction":{"type":"string","enum":["to","from"],"description":"\"to\" = text to Morse, \"from\" = Morse to text (default \"to\")"}},"required":["text"]},"response":{"type":"object","properties":{"input":{"type":"string"},"direction":{"type":"string"},"result":{"type":"string"}}},"example":{"request":{"text":"HELLO WORLD","direction":"to"},"response_shape":{"type":"object","properties":{"input":{"type":"string"},"direction":{"type":"string"},"result":{"type":"string"}}}},"howToCall":"POST a JSON body to https://toolhub-5eo.pages.dev/api/morse-code-translator. Returns {\"ok\":true,\"result\":{...}} on success or {\"ok\":false,\"error\":\"...\"} on failure. No auth, CORS-enabled.","parametersSummary":"  text (string, required) — The text or Morse code to translate\n  direction (string, optional, one of: to|from) — \"to\" = text to Morse, \"from\" = Morse to text (default \"to\")","curlExample":"curl -X POST https://toolhub-5eo.pages.dev/api/morse-code-translator -H \"Content-Type: application/json\" -d '{\"text\":\"HELLO WORLD\",\"direction\":\"to\"}'"}