TOOL API

manage.async_import

Triggers the asynchronous import of an uploaded file into Tencent Docs and returns a task_id. Call manage.pre_import first to get upload_url, file_key and task_id, upload the file to upload_url, then call this tool; afterward poll manage.import_progress (about every 5 seconds) until progress=100 to confirm the import is complete. If both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user pick the target account before invoking this tool.

productivityOAuth1 credits

Call information

Tool slug
tencent-docs.manage.async_import
Provider
Tencent Docs
Average response
0 ms
Calls in 7 days
0

Input parameters

file_keyrequired

文件唯一标识,不能为空;应使用 manage.pre_import 返回的 file_key

file_md5required

文件 MD5 标识,不能为空;当前 MCP 层不校验格式,也不校验其是否与 pre_import 时的 file_md5 一致

file_namerequired

文件名称(含后缀),需与pre_import时传入的file_name一致

file_sizerequired

文件大小,单位为字节(bytes),如36752

task_idrequired

导入任务 ID;应使用 manage.pre_import 返回的 task_id