Add Firecrawl integration for website content crawling #1849
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Firecrawl Integration for Website Content Crawling
This PR implements the Firecrawl integration from PR #13 in the onlook-dev/desktop repository. It adds website content crawling functionality as a toolcall, allowing the AI to extract and process URLs from user messages.
Changes
@mendable/firecrawl-js
dependency topackages/ai
CrawlerService
inpackages/ai/src/tools/crawler.ts
for handling URL crawlingpackages/ai/src/tools/helpers.ts
crawlUrlTool
to the chat tool set inpackages/ai/src/tools/index.ts
LINK
message context type topackages/models/src/chat/message/context.ts
.env.example
Testing
The implementation has been adapted to work with the web-based architecture of the onlook repository while maintaining the same functionality as the original PR.
Link to Devin run
https://app.devin.ai/sessions/cba4dafb7aba4c2b889b737e91803bf4
Requested by
[email protected]