How can AI agents verify URLs before using them?

Make a lightweight request (HEAD, falling back to GET) to each URL and treat only successful responses as valid. Do it automatically before any link is shown to a user or passed to another tool.

Why this matters

Language models can produce plausible but non-existent URLs. Shipping them breaks trust and wastes the next step's effort.

How to do it

  1. Collect every URL in the draft.
  2. Send them in one batch to a verifier.
  3. Drop or replace failures.
  4. Only then return the answer.

Example

POST /api/public/verify with {"items":[{"target":"https://example.com","type":"url"}]} and an Authorization: Bearer <agent_token> header.

ZUT tools that help

  • Existence Verifier — Check GitHub repositories, npm and PyPI packages (with their creation date), Hugging Face models and datasets, Docker Hub images, and website links on approved hosts — up to 10 items per call, with an Agent token.

Related questions

Why does verification need a token?
Every check makes outbound requests to other sites, so ZUT requires an Agent token to limit abuse.
What are the limits?
Up to 10 items per call, a 3-second timeout per item and at most 2 redirects.

Read next

All AI agent questions