HomeIntegrationsOpenAI Agents SDK

Webcrawl + OpenAI Agents SDK

Wrap /v1/scrape and /v1/search as custom Agents SDK tools.

No official Agents SDK package

Webcrawl does not publish an OpenAI Agents SDK package. Define tool functions that call @webcrawl/client or REST, then register those tools with your agent.

Scrape helper

import { createClient } from "@webcrawl/client";

const client = createClient({ apiKey: process.env.WEBCRAWL_API_KEY });
const page = await client.scrape({ url: "https://example.com" });
console.log(page.markdown);

Search helper

import { createClient } from "@webcrawl/client";

const client = createClient({ apiKey: process.env.WEBCRAWL_API_KEY });
const results = await client.search({ query: "webcrawl MCP setup", limit: 5 });
console.log(results);

Suggested tool surface

  • webcrawl_search → POST /v1/search
  • webcrawl_scrape → POST /v1/scrape
  • webcrawl_map → POST /v1/map

Prefer MCP when the client already speaks MCP. See AI agent web access and LangChain for related patterns.

FAQ

Is there an official Webcrawl package for the OpenAI Agents SDK?

No. Call @webcrawl/client or REST from tool functions you define in the OpenAI Agents SDK. We do not publish a separate OpenAI Agents integration package.

Which endpoints should agent tools call?

Start with POST /v1/search to find URLs, POST /v1/scrape for Markdown, and POST /v1/map when you need a site URL list. Use POST /v1/extract when you need structured fields.

Can I use MCP instead of custom tools?

Yes, when your runtime speaks MCP. Prefer hosted https://webcrawl.app/mcp or npx @webcrawl/mcp. Use Agents SDK tool wrappers when you already standardize on that SDK.

Next

Every page, one tool

Give your agent the web.

Start for free