HTTP GET
The HTTP GET tool gives AI agents direct access to raw HTTP GET and HEAD responses — including exact status codes, normalized response headers, raw HTML source, linked JavaScript or CSS bundles, and unparsed REST/JSON API endpoints.
Tool Identifier: http-get (exposes function http_get)
Looking to summarize articles or read clean rendered web page text without HTML markup? See HTTP Text (
http-text).
Capabilities
While HTTP Text focuses on human-readable prose extraction, HTTP GET lets agents inspect web applications and APIs at the HTTP and source-code layer:
- Raw HTML & Asset Inspection: Retrieve unstripped HTML
<script src="...">,<link>, and DOM markup, then follow up on linked JavaScript bundles or stylesheets. - Large Bundle Search & Pagination: Locate API routes or tokens inside large minified JavaScript files using built-in
search(substring or bounded regular expression matching withcontext_chars) and paginate withoffsetandmax_length. - Direct REST API & Header Inspection: Inspect exact HTTP status codes,
content_type,final_urlafter redirects, and response headers (such asCache-Control,Content-Length, or CORS headers), or issue lightweightHEADchecks.
Parameters
Agents call http_get with structured arguments:
url(required): Publichttp://orhttps://URL to request.method(optional, defaultGET): HTTP method (GETorHEAD).accept(optional): Custom read-onlyAcceptrequest header (for exampleapplication/json).offset/max_length(optional): Character offset and maximum slice length for paginating through large responses.search/context_chars(optional): Pattern filter (case-insensitive substring or regex) and surrounding character context for finding matches inside large HTML or JS payloads.
How to Enable
In the UI
When configuring an agent in the Agent Builder or editing an existing agent, check the box for: ☑️ HTTP GET 📡
In Agent YAML
Add http-get to the tools array:
tools:
- http-get
Example Prompts & Use Cases
- Discover an Undocumented Frontend API: "Fetch https://example.com/ with
http_get, find the main JavaScript bundle URL in the HTML, search that bundle for/api/, and call the discovered JSON endpoint." - Inspect HTTP Headers & Status: "Run a
HEADrequest on https://example.com/data.json and report the status code,Content-Type, andContent-Length." - Combine Reading Docs & Querying APIs: Enable both
http-textandhttp-getso an agent can read human documentation with HTTP Text and verify live endpoints with HTTP GET.
Related Tools
- 🌐 HTTP Text: Read clean, boilerplate-free prose and documentation from web pages.
- 📤 HTTP POST: Execute mutating
POST/PUT/PATCH/DELETEcalls once endpoints are discovered. - 🔎 Google Search Grounding: Discover candidate URLs before fetching them directly.
- 💻 Code Execution: Analyze retrieved datasets in Python.
- 📖 Connected Tools Overview
- 🌐 User-Agent: How outbound
http_getrequests identify themselves to target servers.