工具调用示例(Firecrawl)
firecrawl 是一个多功能网页抓取和数据提取工具,通过 mode 参数调用不同功能。其 parameters 结构是嵌套的。
✅ 正确的调用结构:
{"mode": "<功能模式>", "parameters": {"<参数名>": "<参数值>"}}
💡 重要提示:
scrape、search、map是同步操作,立即返回结果crawl、extract是异步操作,返回job_id用于后续状态检查- 所有参数都必须在
parameters对象内,不要放在顶层 - URL 必须以
http://或https://开头
功能模式详解
➡️ 示例 1: 抓取单个网页 (scrape)
✅ 正确示例:
{
"mode": "scrape",
"parameters": {
"url": "https://docs.firecrawl.dev/",
"form
[Description truncada. Veja o README completo no GitHub.]