@zack/wikipedia-scrape

Fetch a Wikipedia URL and return title, text, and image URLs.

Z
@zack
Publication time unavailable30 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/wikipedia-scrape@0.1.5

02Run Tool

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

agentpm run @zack/wikipedia-scrape@0.1.5 --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/wikipedia-scrape@0.1.5');
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.

wikipedia-scrape

What it does

Fetches a Wikipedia article URL and returns:

  • title (string)
  • text (full extracted text)
  • images (array/list of image URLs or a serialized string, per the manifest)

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

  • Uses undici with a custom User-Agent.

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

Run in isolation

pnpm -C tools-node/wikipedia-scrape build

echo '{"url":"https://en.wikipedia.org/wiki/Alan_Turing"}' | node tools-node/wikipedia-scrape/dist/index.js