Skip to main content

Web Search Tool

Performs web searches using Firecrawl to find current information from the web

Quick Start

import { WebSearchTool } from '@bubblelab/bubble-core';
import { CredentialType } from '@bubblelab/shared-schemas';
const result = await new WebSearchTool({

query: 'example', // The search query to execute
credentials: {
[CredentialType.FIRECRAWL_API_KEY]: process.env.FIRECRAWL_API_KEY as string,
},
}).action();

Operation Details

execute

query string required
The search query to execute
limit number
Maximum number of search results to return
categories 'research' | 'pdf' | 'github'[]
Categories to find most relevant search results (research, pdf, github)
location string
Location parameter for search results (e.g., "us", "uk")
credentials Record<CredentialType,string>
Required credentials including FIRECRAWL_API_KEY