Documentation Index
Fetch the complete documentation index at: https://docs.firecrawl.dev/llms.txt
Use this file to discover all available pages before exploring further.
/support/ask 端点是一个 AI 支持代理,可帮助诊断 Firecrawl 任务、账户和 API 使用方式中的问题。提交问题后,你将收到经过验证的答案,以及可直接采取行动的修复参数——通常会在 15–30 秒内返回。
/support/ask 专为 代理间 通信而构建。如果你正在构建使用 Firecrawl 的 AI 代理,请将此端点接入错误处理流程,让代理能够在无需人工干预的情况下,自行诊断抓取失败、爬取问题和配置问题。
传入 rationale 字段,为支持代理提供有关终端用户想要实现目标的上下文。这有助于优先收集相关证据。
answer、可直接应用的机器可读 fixParameters,以及表明该修复是否经过测试的 validation 结果。| 字段 | 类型 | 描述 | |
|---|---|---|---|
answer | string | 用 2-4 句话说明问题诊断和修复方法 | |
confidence | string | high、medium 或 low | |
fixParameters | object | null | 用于应用修复的 API 参数 (例如 {"waitFor": 5000}) |
validation | object | null | 修复是否已测试:tested、result (success/failure/skipped) 、evidence |
feedback | object | null | 当代理陷入卡住状态时提供;{ blockedBy, attempted }。成功时为 null。 |
durationMs | integer | 总执行时间 (以毫秒为单位) |
| Code | 含义 |
|---|---|
200 | 已答复或卡住 (始终返回 envelope) |
400 | JSON 无效或不符合 schema |
401 | 缺少或无效的 bearer token |
504 | 达到 60 秒硬性时限——返回部分 envelope |
你是需要 Firecrawl API 密钥的 AI 代理吗?请参见 firecrawl.dev/agent-onboarding/SKILL.md 了解自动化接入说明。
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
要诊断的内容。请描述你遇到的问题。
1 - 8000建议供 AI 调用方使用。用 1-2 句话说明最终用户想要完成的目标。
1 - 2000与失败调用关联的可选 Firecrawl 任务 ID。设置后,debugJob、searchLogs 和 getJob 等工具会默认自动使用此 ID,因此代理无需从问题中提取。
来自调用代理的自由格式元数据,会被序列化为字符串并写入诊断 prompt。
诊断完成。无论代理是否找到答案或陷入卡顿,都会返回该封装响应。