Skip to main content
Glama

下载任务产物到本地

download_asset

Download task outputs or any URL to local disk. Specify a task ID to download all result URLs, or provide a direct URL for single file download.

Instructions

把任务产物或任意 URL 下载到本地磁盘(视频等大文件的显式落盘手段)。传 task_id 时下载其成功结果里的全部 url;或直接传 url。产物 URL 24 小时失效,请及时下载。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo直接下载的 URL(与 task_id 二选一)
task_idNo要下载其结果的 task_id(下载全部结果 url)
save_dirNo保存目录(默认当前工作目录);文件名从 URL 推断
save_pathNo单文件完整保存路径(仅 url 模式或单结果时生效,优先于 save_dir)
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses that the tool downloads and saves files locally, that URLs expire, and the parameter behaviors. It does not mention permissions or side effects beyond saving, but for a download tool this is sufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, consisting of two sentences that front-load the main purpose. Every sentence adds essential information without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description does not explain return values (e.g., saved file path or success status). While the tool's behavior is mostly clear, the lack of return value information is a gap for an otherwise complete description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with parameter descriptions. The description adds context beyond the schema: it explains the relationship between task_id and url (mutually exclusive), the purpose of saving large files, and the URL expiry. This adds meaningful value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: downloading task assets or arbitrary URLs to local disk. It specifies the two modes (by task_id or direct URL) and highlights that it's for explicit persistence of large files like videos.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains when to use each parameter (task_id vs url) and notes the 24-hour URL expiry. While it doesn't explicitly mention when not to use the tool, the sibling tools are distinct and do not offer download functionality, so the guidance is adequate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cookaihq/aihub-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server