Email address spans

email-address-spans · version 1.0.0 · Communications · free, no key needed

Locate every email address occurrence in text with exact half-open code point, UTF-16 and UTF-8 offsets.

Use when you need to: find email address positions in text · character offsets of each email in a string · highlight email addresses with start and end index.

Decide before calling

Read the versioned contract and the supported scope below. Reuse email-address-spans@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use email-address-spans@1.0.0 for find email address positions in text. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "text": "Cc: <boss@nil.test>, sysservices@example.net"
}

Response:

{
  "result": {
    "spans": [
      {
        "text": "boss@nil.test",
        "address": "boss@nil.test",
        "start": 5,
        "end": 18,
        "utf16_start": 5,
        "utf16_end": 18,
        "utf8_start": 5,
        "utf8_end": 18
      },
      {
        "text": "sysservices@example.net",
        "address": "sysservices@example.net",
        "start": 21,
        "end": 44,
        "utf16_start": 21,
        "utf16_end": 44,
        "utf8_start": 21,
        "utf8_end": 44
      }
    ],
    "count": 2
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "email-address-spans",
  "version": "1.0.0",
  "input": {
    "text": "Cc: <boss@nil.test>, sysservices@example.net"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/email-address-spans/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"Cc: <boss@nil.test>, sysservices@example.net"}'

The machine-readable contract is at /v1/tools/email-address-spans/versions/1.0.0.

CLI

node cli.mjs run email-address-spans 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.