HTTP, API and Download Tools
Last updated
Tools for raw HTTP requests, public API lookup, downloads and worked HTML page examples.
| Tool | Concurrent | Description |
|---|---|---|
http_request | ✓ | Raw HTTP request (GET/POST/PUT/DELETE/PATCH), returns status + headers + body. content_type selects json / form / multipart; multipart takes {"fields":{...},"files":[{"name","path","content_type"}]} with absolute paths read as binary; since v1.5.2 each file path goes through the same boundary as read_files before it is read: a sensitive path or one outside $HOME (unless on the readable list) raises the confirmation first, and a denied_path entry is refused. Timeout up to 300 s. A GET runs without confirmation; other methods go through the confirm gate. Built-in SSRF guard (DNS-resolved against loopback / private / link-local); bypass specific hosts via net_white_list. Since v1.3.2 it is the answer step for a public API found with public_api_list — no tool is built; a user-supplied API that needs a key belongs in a script_* tool whose script reads the key with get_key(), so the key never lands in the conversation. The former advice to save a repeated endpoint as an api_* tool was Removed in v1.3.2 together with API tools |
public_api_list | ✓ | A built-in since v1.3.2 (formerly the API tool api_public_api_list). Public API directory: with no category it returns the category names; with category (case-insensitive, e.g. Weather) it returns each API in that category with its name, description, HTTPS flag and docs URL. Since v1.3.8 the agent passes the category directly when the request clearly fits one, an unknown category returns [Not found] with the full category list, and the tool-call line reads API(<category>). The directory lists only keyless APIs. Used when no existing tool covers a live-data request: pick an API → fetch_page its docs → http_request; no fitting API → reasoning_guide(topics=["tool_generate"]). 30 s cap |
download_file | ✓ | Download a URL to local disk: a binary file as-is (tar.gz, images, archives, installers), or, since v1.3.6, a web page rendered in the browser with the user's Chrome login and saved as markdown, html or json. link and output_file are required; an absolute output_file is used as-is, a relative one is joined under the output directory (output_dir, else ~/Downloads, else ~/.config/agenvoy/download/ — not the working directory), parent directories are created and an existing file is overwritten; since v1.5.0 a target on denied_path or inside the read-only ~/.config/agenvoy (outside download/) is refused with [Denied]. render (added in v1.3.6, default false) picks the browser path; output_type (added in v1.3.6: markdown default, html, json) applies only with render=true; the url and type parameters were renamed link and output_type (Removed in v1.3.17). A rendered save skips the decision-model filtering and the 1 MiB read limit of fetch_page, writes a json page as the bare node tree, and returns Downloaded <n> chars to <path>. timeout (default 120 s, capped at 600 s) applies only to the plain download; a rendered page uses the browser fetch's own limit. Since v1.3.17 the plain download streams the response into a temporary file beside the target and renames it into place, so an existing file is replaced only by a complete download, and returns url, output_file, size_bytes and, when the server sends X-Sha256, sha256; the ok and status_code fields were Removed in v1.3.17. A non-2xx response returns [Upstream] with the status and the first 4 KiB of the body. Reading a page without saving → fetch_page; JSON or an API response → http_request |
html_template | ✓ | Added in v1.0.17. Gallery of worked HTML page examples served from https://view.agenvoy.com: mode=list returns every template's name, category, title, desc; mode=read returns one template's full HTML by name. Used while building an HTML deliverable after reasoning_guide(topics=["html_render"]), which then saves the complete HTML document with write_result. Replaces the former http_request / fetch_page calls to the same gallery. Any other web page → fetch_page. 30 s cap |
run_websocket (added in v1.3.0) was Removed in v1.3.2, with no replacement tool; a one-off request goes to http_request or fetch_page.