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
- Input Schema
- Output Schema
querystring required- The search query to execute
limitnumber- Maximum number of search results to return
categories'research' | 'pdf' | 'github'[]- Categories to find most relevant search results (research, pdf, github)
locationstring- Location parameter for search results (e.g., "us", "uk")
credentialsRecord<CredentialType,string>- Required credentials including FIRECRAWL_API_KEY
resultsobject[] required- Array of search results with title, URL, and content
querystring required- The original search query
totalResultsnumber required- Number of results returned
searchEnginestring required- Search engine used (Firecrawl)
creditsUsednumber required- Number of credits used
successboolean required- Whether the search was successful
errorstring required- Error message if search failed