1.7 KiB
1.7 KiB
FireCrawl Search Integration
Overview
This skill integrates the FireCrawl API to enable web search capabilities within Clawdbot.
Tool: firecrawl-search
The firecrawl-search tool provides the following functionality:
Parameters
query(required): The search query to be executed.apiKey(required): The FireCrawl API key to authenticate the request.
Output
The tool returns a JSON object with the following structure:
{
"results": [
{
"url": "https://example.com",
"title": "Example Website",
"snippet": "This is an example website description."
},
{
"url": "https://another.com",
"title": "Another Website",
"snippet": "This is another website description."
}
]
}
Implementation
- The
firecrawl-searchtool will make a POST request to the FireCrawl/v2/scrapeendpoint, passing the providedqueryandapiKeyas parameters. - The tool will process the API response, extracting the relevant search results (URL, title, and snippet).
- The tool will return the search results in the format specified above.
Configuration
To use the firecrawl-search tool, you'll need to add the following configuration to the Clawdbot clawdbot.json file:
{
"tools": {
"firecrawl-search": {
"path": "/Users/manohar_air/clawd/firecrawl-search/index.js",
"parameters": {
"query": {
"type": "string",
"required": true
},
"apiKey": {
"type": "string",
"required": true
}
}
}
}
}
Please let me know if you have any other questions or if you'd like me to proceed with the implementation of the firecrawl-search tool.