TOOL API

document.parse_document

Creates a document parsing task for a single supported document reachable via a direct HTTP(S) URL, extracting its content as Markdown. Only pass direct links to files of type pdf, png, jpg, jpeg, jfif, webp, doc, docx, xls, xlsx, wps, or et; do not use it for local files or paths, local or LAN URLs, links requiring login or extra authorization, web or share pages, archives, base64, file streams, or raw file bodies. The call returns a task_id, status and message by default; while status is processing, keep calling get_parse_result, and the parsed Markdown appears in details[].result_md once done. Setting wait=true only attempts to wait for completion within this call and does not guarantee it.

data30 credits

Call information

Tool slug
qcc-agent.document.parse_document
Provider
Qichacha Agent
Average response
0 ms
Calls in 7 days
0

Input parameters

file_url

parse_document 的必填来源参数:解析服务可直接访问的单个 HTTP(S) 文档直链。文件类型必须是以下之一:pdf、png、jpg、jpeg、jfif、webp、doc、docx、xls、xlsx、wps、et。URL 必须以 http:// 或 https:// 开头,并指向可读、未损坏、未加密且无打开密码的文件。不要传入本地文件路径、file:// URL、localhost、回环地址、链路本地地址、局域网或其他私有网络地址、内部域名,以及仅能通过本机、VPN 或内部 DNS 访问的地址;也不要传入需要登录、Cookie、自定义请求头或交互授权的地址,以及网页、目录页、分享页、base64、文件流、文件正文或多个 URL。URL 可以包含无需额外操作即可访问文件的临时签名参数;此时必须保留完整 URL,包括 query 参数。

wait

是否尝试在本次调用中等待解析完成,默认 false。为 false 时,提交任务后返回 task_id,后续通过 get_parse_result 查询结果;当用户明确希望尽量直接取得结果,或者预计文档较小时,可以设为 true。true 不保证任务在本次调用中完成;如果仍返回 status=processing,必须继续调用 get_parse_result。