You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: expose knowledgeGraph scrape format over MCP
Surface the new knowledgeGraph format (added in the firecrawl API) so agents
can request it through the scrape/search/crawl tools.
- scrapeParamsSchema: add 'knowledgeGraph' to the formats enum and a
knowledgeGraphOptions param ({ entityTypes: string[].max(50) }).
- buildFormatsArray: map 'knowledgeGraph' to { type:'knowledgeGraph',
...knowledgeGraphOptions }, mirroring the json/query handling.
- transformScrapeParams: strip knowledgeGraphOptions after building.
- Tool description: document the format and add a usage example.
scrapeParamsSchema is shared by the scrape, search, and crawl tools, so this
covers all three. The bundled @mendable/firecrawl-js validator is permissive
toward unknown format types, so no SDK change is required.
@@ -637,6 +649,18 @@ If JSON extraction returns empty, minimal, or just navigation content, the page
637
649
}
638
650
\`\`\`
639
651
**Branding format:** Extracts comprehensive brand identity (colors, fonts, typography, spacing, logo, UI components) for design analysis or style replication.
652
+
**Knowledge graph format:** Use \`knowledgeGraph\` to extract a graph of the entities on a page (nodes) and the relationships between them (edges). Each node has \`id\`, \`label\`, \`type\`; each edge has \`source\`, \`target\`, \`relation\`. Optionally pass \`knowledgeGraphOptions.entityTypes\` (max 50) to restrict which entity types are extracted. Best for mapping people/organizations/concepts and how they connect, rather than reading prose.
**Performance:** Add maxAge parameter for 500% faster scrapes using cached data.
641
665
**Lockdown mode:** Set \`lockdown: true\` to serve the request only from the existing index/cache without any outbound network request. For air-gapped or compliance-constrained use where the request URL itself is considered sensitive. Errors on cache miss. Billed at 5 credits.
642
666
**Privacy:** Set \`redactPII: true\` to return content with personally identifiable information redacted.
0 commit comments