atd-tools-web
Built-in web-fetch tool for the ATD (Agent Tool Dispatch) reference runtime.
Tool provided
| Tool id | Struct | Purpose |
|---|---|---|
ref:web.fetch |
WebFetchTool |
HTTP/HTTPS GET with SSRF guards, per-call timeouts, byte caps, and HTML-to-Markdown conversion. |
ref:web.fetch blocks private / loopback / link-local addresses by default
(set allow_private: true to opt in). HTML bodies are converted to Markdown
via htmd; JSON and text pass through verbatim; binary responses return
metadata only. Request headers are allowlisted (Accept, Accept-Language,
Referer, User-Agent).
Usage
Pair this crate with atd-runtime:
use WebFetchTool;
use Registry;
use Arc;
let mut registry = new;
registry.register;
Or use atd-ref-server, which has
this tool registered.
For the pattern behind writing your own tool, see
atd-tools-echo — the documented template.
License
Apache-2.0.