docs(scrape): add map tool as fallback step for SPA/JS-heavy pages#157
Merged
leonardogrig merged 2 commits intomainfrom Feb 5, 2026
Merged
docs(scrape): add map tool as fallback step for SPA/JS-heavy pages#157leonardogrig merged 2 commits intomainfrom
leonardogrig merged 2 commits intomainfrom
Conversation
When scrape returns empty or minimal content from JavaScript-rendered pages, guide users to try firecrawl_map with a search parameter to discover the specific page URL before falling back to firecrawl_agent. This is more efficient than immediately using the agent, as many large documentation sites spread content across multiple URLs that can be discovered via map. Co-Authored-By: leonardogrig <leo@sideguide.dev>
- Enhanced map tool description to highlight its role in finding specific page URLs when scrape returns empty results - Added search parameter example showing the recommended workflow - Removed waitFor from default scrape JSON example (it's optional, only needed when JS rendering requires extra wait time) Co-Authored-By: leonardogrig <leo@sideguide.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
firecrawl_mapwith a search parameter before falling back tofirecrawl_agentContext
When scraping JavaScript-heavy pages like API documentation sites, the scrape tool may return empty or minimal content. Previously, the guidance jumped directly to using
firecrawl_agent.Testing showed that using
firecrawl_mapwith a search parameter can efficiently discover the specific page URL (e.g.,/reference/webhook-eventsinstead of just/reference), allowing a subsequent scrape to succeed without the overhead of the full agent.Example workflow that now works:
https://docs.example.com/referencefor "Invoice Deleted webhook parameters" → empty result{"url": "https://docs.example.com/reference", "search": "Invoice Deleted webhook"}→ finds/reference/webhook-eventsTest plan