Files
openclaw/extensions/firecrawl/web-fetch-contract-api.ts
2026-06-04 21:02:07 -04:00

15 lines
533 B
TypeScript

// Firecrawl API module exposes the plugin public contract.
import {
enablePluginInConfig,
type WebFetchProviderPlugin,
} from "openclaw/plugin-sdk/provider-web-fetch-contract";
import { FIRECRAWL_WEB_FETCH_PROVIDER_SHARED } from "./src/firecrawl-fetch-provider-shared.js";
export function createFirecrawlWebFetchProvider(): WebFetchProviderPlugin {
return {
...FIRECRAWL_WEB_FETCH_PROVIDER_SHARED,
applySelectionConfig: (config) => enablePluginInConfig(config, "firecrawl").config,
createTool: () => null,
};
}