ashlr__http
Compressed HTTP fetch. Extracts main content from HTML, elides arrays in JSON, and enforces a byte cap.
Server: ashlr-http — servers/http-server.ts
Fetches a URL and returns a compressed representation. Replaces raw curl or native WebFetch calls in agent workflows. Four output modes available:
| Mode | What it returns |
|---|---|
html (default) | Title + main content extracted, boilerplate stripped |
json | Pretty-printed, arrays elided after 5 elements |
raw | Passthrough, byte-capped at 100 KB |
headers | Response headers only |
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
url | string | yes | URL to fetch |
method | string | no | HTTP method (default GET) |
headers | object | no | Request headers |
body | string | no | Request body (for POST/PUT) |
mode | string | no | html, json, raw, or headers |
maxBytes | number | no | Response body cap before compression (default 2_000_000) |
timeoutMs | number | no | Request timeout (default 15000) |
Output format
Private host protection
Requests to private/loopback addresses (localhost, 127.0.0.1, 10.x, 192.168.x, 169.254.x) are blocked by default.
Example
Related tools
ashlr__webfetch— article-focused variant, narrower scope