URL resolve

url-resolve · version 1.0.0 · URLs & IP addresses · free, no key needed

Resolve a URL against an absolute http(s) base using WHATWG. No fetching. Result must be http(s).

Use when you need to: url resolve · resolve relative url · join url against base.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "base": "https://example.com/a/b",
  "url": "../c"
}

Response:

{
  "result": {
    "url": "https://example.com/c"
  }
}

How to call it

MCP

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

{
  "id": "url-resolve",
  "version": "1.0.0",
  "input": {
    "base": "https://example.com/a/b",
    "url": "../c"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/url-resolve/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"base":"https://example.com/a/b","url":"../c"}'

The machine-readable contract is at /v1/tools/url-resolve/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.