Skip to main content
Glama
crawl4ai-scrape-handler.ts644 B
/** * Crawl4AI Scrape Handler * * Handler for the scrape tool that allows scraping a single webpage with advanced options */ import { createHandler, createStringValidator } from '../utils/handler-factory'; /** * Handler for scraping a single webpage */ export const handleCrawl4aiScrape = createHandler('scrape', { validateParams: createStringValidator('url', 'URL is required and must be a string'), emptyResponseMessage: params => `No content was returned from ${params.url}. The page might be empty, protected, or blocked.`, errorContext: params => `Error scraping ${params.url}`, }); export default handleCrawl4aiScrape;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BjornMelin/crawl4ai-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server