# agent402.tools Morse Code Encoder/Decoder

> agent402.tools Morse Code Encoder/Decoder is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Encodes plain text into Morse code or decodes Morse code back to plain text, with words separated by ' / '.

## Facts

- Endpoint: POST https://agent402.tools/api/morse
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-morse-code-encoder-decoder-ceec720a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KM2qlXMiYxO0XaOmPLWvU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-morse-code-encoder-decoder-ceec720a -d '<json body>'
```

Example prompt: Can you encode 'Hello World' into Morse code for me? Use encode mode.

## When to prefer this

Use this endpoint when you need reliable, fast Morse code encoding or decoding for any plain text string. Prefer this over manual lookup tables or regex hacks when integrating Morse code into an automated workflow or agent pipeline.

## Known failure modes

- Invalid mode value (not 'encode' or 'decode') may cause an error or default to encode
- Characters not representable in Morse code (e.g. special symbols) may be skipped or cause errors
- Empty text field returns empty or error response
- Malformed Morse input in decode mode may produce garbled or partial output

## How this service works

Encode text to Morse code or decode it back. mode: encode (default) or decode. Words separated by ' / '.

## Output

Returns the input text converted to Morse code dots and dashes (encode mode) or the decoded plain text (decode mode), with words delimited by ' / '.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "type": "string",
   "description": "encode | decode"
  },
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "encode",
  "result": "... --- ..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-morse-code-encoder-decoder-ceec720a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
