Files
openclaw/extensions/firecrawl/web-search-contract-api.ts
Developers Digest 8809848b19 feat(firecrawl): add keyless Firecrawl Search (Free) provider + richer firecrawl_search options (#97078)
* feat(firecrawl): add keyless Firecrawl Search (Free) provider + richer firecrawl_search options

Add an opt-in, keyless 'firecrawl-free' web_search provider (Firecrawl
Search (Free)) mirroring the Parallel plugin's parallel-free pattern:
requiresCredential false, no autoDetectOrder, never auto-selected. The
free path is credential-isolated — it never resolves or sends any
Firecrawl API key (no Authorization header), so opting out of credentials
cannot leak a configured/paid key — and its results and cache key carry a
distinct 'firecrawl-free' provider identity. The keyed 'firecrawl'
provider and core search auto-select behavior are unchanged, honoring the
maintainers' opt-in policy for keyless search.

Registered in index.ts, the web-search-provider barrel, the
web-search-contract-api metadata artifact (the onboarding/setup source),
manifest contracts, the official external plugin catalog snapshot, and
the doctor/contract registries.

Also extend the firecrawl_search tool to /v2/search parity:
includeDomains/excludeDomains (mutually exclusive), tbs, location,
country, and raise the result cap to 100.

* docs: regenerate docs_map for firecrawl heading rename

---------

Co-authored-by: developersdigest <jonathan@sideguide.dev>
2026-07-12 21:04:43 -07:00

21 lines
631 B
TypeScript

// Firecrawl API module exposes the plugin public contract.
import type { WebSearchProviderPlugin } from "openclaw/plugin-sdk/provider-web-search-contract";
import {
buildFirecrawlFreeWebSearchProviderBase,
buildFirecrawlWebSearchProviderBase,
} from "./web-search-shared.js";
export function createFirecrawlWebSearchProvider(): WebSearchProviderPlugin {
return {
...buildFirecrawlWebSearchProviderBase(),
createTool: () => null,
};
}
export function createFirecrawlFreeWebSearchProvider(): WebSearchProviderPlugin {
return {
...buildFirecrawlFreeWebSearchProviderBase(),
createTool: () => null,
};
}