LlamaIndex
FunctionTool wrappers for any LlamaIndex agent, scrape, search, extract, and enrich as first-class agent tools.
⚠️
Not published. @superscraper/llamaindex does not exist on npm, so there is no install command
for it today. The source lives in this repository at packages/llamaindex-superscraper; the code
below describes that source. Until it ships, wrap the REST API in your own
FunctionTool, a POST /v1/scrape with the x-api-key header is the entire dependency.
Running it from source
Clone the repository and reference packages/llamaindex-superscraper as a workspace or file
dependency. It expects llamaindex as a peer.
Scrape in 5 lines
import { createScrapeTool } from '@superscraper/llamaindex';
// Reads SUPERSCRAPER_API_KEY from the environment.
const scrape = await createScrapeTool();
const result = await scrape.call({ url: 'https://example.com' });
console.log(result); // clean markdown + listing + provenanceIn an agent
import { createAllTools } from '@superscraper/llamaindex';
import { ReActAgent, Anthropic } from 'llamaindex';
const tools = await createAllTools();
const agent = new ReActAgent({
tools,
llm: new Anthropic({ model: 'claude-sonnet-4-6' }),
});
const response = await agent.chat({
message: 'Find the top 5 HVAC companies in Austin TX with their contact info',
});Tools
| Factory | Tool name | Endpoint |
|---|---|---|
createScrapeTool() | superscraper_scrape | /v1/scrape |
createSearchTool() | superscraper_search | /v1/search |
createExtractTool() | superscraper_extract | /v1/extract |
createEnrichTool() | superscraper_enrich | /v1/enrich/website |
createAllTools() | all of the above |