download_file_stream
Streams files from local stream paths, URLs, or cached media and saves them to the MCP download directory through invoke_action, returning file info, chunks, and completion frames.
Instructions
以流式方式下载文件(stream 目录本地文件 / URL / 缓存媒体) 替换实际公开可访问地址;经 invoke_action 调用,文件保存到 MCP 下载目录。 Returns: 流式帧:file_info → file_chunk* → file_complete
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "download_file_stream"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | 文件路径(限 stream 临时目录)/ http(s) URL | |
| file_id | No | 文件 ID(缓存的图片/语音 id) | |
| chunk_size | No | 分块大小(字节,默认 64KB) |