How can AI agents check whether a web page exists?
Send a HEAD request, fall back to GET if the server doesn't support HEAD, follow a small number of redirects, and treat a 2xx final status as existing.
Why this matters
Some servers reject HEAD, some redirect endlessly, and some hang — a naive check gives wrong answers or stalls the agent.
How to do it
- HEAD the URL with a short timeout.
- On 405/501, retry with GET.
- Follow at most a couple of redirects.
- Report status and final URL.
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
- Can ZUT check private or local addresses?
- No. Only public HTTPS targets are contacted.