ashlr

ashlr__http

Compressed HTTP fetch. Extracts main content from HTML, elides arrays in JSON, and enforces a byte cap.

Server: ashlr-httpservers/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:

ModeWhat it returns
html (default)Title + main content extracted, boilerplate stripped
jsonPretty-printed, arrays elided after 5 elements
rawPassthrough, byte-capped at 100 KB
headersResponse headers only

Input schema

FieldTypeRequiredDescription
urlstringyesURL to fetch
methodstringnoHTTP method (default: GET)
headersobjectnoRequest headers
bodystringnoRequest body (for POST/PUT)
modestringnohtml, json, raw, or headers
capnumbernoByte cap on response (default: 100000)

Output format

[ashlr__http] GET https://example.com  ·  200 OK  ·  42 KB → 3.1 KB (−93%)  [A]

# Example Domain
This domain is for use in illustrative examples...

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

Use ashlr__http to fetch https://api.github.com/repos/ashlrai/ashlr-plugin

On this page