Github heading slug

github-heading-slug · version 1.0.0 · Text · free, no key needed

Generate GitHub-style heading anchors in order, including deterministic duplicate suffix allocation.

Use when you need to: generate GitHub heading anchors · slug markdown headings · allocate duplicate heading ids.

Decide before calling

Read the versioned contract and the supported scope below. Reuse github-heading-slug@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 github-heading-slug@1.0.0 for generate GitHub heading anchors. 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:

{
  "headings": [
    "Hello, World!",
    "Hello World",
    "Hello World"
  ]
}

Response:

{
  "result": {
    "anchors": [
      "hello-world",
      "hello-world-1",
      "hello-world-2"
    ]
  }
}

How to call it

MCP

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

{
  "id": "github-heading-slug",
  "version": "1.0.0",
  "input": {
    "headings": [
      "Hello, World!",
      "Hello World",
      "Hello World"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/github-heading-slug/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"headings":["Hello, World!","Hello World","Hello World"]}'

The machine-readable contract is at /v1/tools/github-heading-slug/versions/1.0.0.

CLI

node cli.mjs run github-heading-slug 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.