@zack/http-fetch

Make HTTP requests (GET/POST/etc.) and return normalized response metadata and content.

Z
@zack
Publication time unavailable6 installs · all versions

Get started

Install, run, or load this Tool.

Run directly with the CLI or call from an SDK

01Install

Resolve this exact Tool version and its prepared dependencies.

agentpm install @zack/http-fetch@0.1.1

02Run Tool

Send JSON to its declared input contract and receive JSON output.

agentpm run @zack/http-fetch@0.1.1 --input-file input.json

Supply input.json matching this Tool’s input schema.

ORLoad via SDK

Call the installed Tool through an SDK.

import { load } from '@agentpm/sdk';
const t = await load('@zack/http-fetch@0.1.1');
CLI version & updates

CLI 0.1.36+ reads and preserves standard declarations. New publications require an explicit supported standard; use the latest CLI for current authoring checks. Historical releases remain installable as published. This floor does not establish selected-release installation support or Harness readiness.

Check agentpm --version, then follow the CLI installation and update guide. See the publication compatibility requirements.

http-fetch

What it does

Make HTTP requests (GET/POST/etc.) and return normalized response metadata and content.

AgentPM manifest

See agent.json in this folder. It declares:

  • "kind": "tool", "runtime": { "type": "node", "version": "20" }
  • "entrypoint": { "command": "node", "args": ["dist/index.js"] }
  • JSON Schema for inputs and outputs

Quirks

  • Use HTTP_FETCH_DEFAULT_USER_AGENT env variable to set User-Agent header value for fallback.
  • Use HTTP_FETCH_PROXY_URL to route requests through a proxy url.

Entrypoint reads JSON from stdin and prints a single JSON object to stdout.

Setup & run


# install and build

pnpm -C tools-node/http-fetch build


# set env and run

echo '{"url":"https://agentpackagemanager.com"}' | node tools-node/http-fetch/dist/index.js