Skip to main content
Glama
mayjack0312
by mayjack0312

eda_sys_file_system_save_file

Save file streams to local disk using browser download or Electron save. Accepts file data and optional filename.

Instructions

sys_FileSystem.saveFile(fileData: File | Blob, fileName?: string) -> Promise 保存文件 remarks: 调用浏览器下载接口或 Electron 保存文件接口,将传入的文件流保存到本地

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNo按官方签名顺序排列的JSON参数数组
windowIdNo目标EDA窗口ID;省略时使用当前活动窗口

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the disclosure burden. It does reveal the underlying mechanism (browser download or Electron save interface) and the local-destination result, which is useful. However, it omits behavioral details such as whether a save dialog appears, whether existing files are overwritten, or any error conditions.

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

Conciseness4/5

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

The description is compact: a signature line, a short Chinese phrase, and a one-line remark. It conveys the core purpose and mechanism without waste, though the '保存文件' phrase is slightly redundant with the function name.

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?

For a simple save operation, the signature and local-save remark provide a usable baseline. However, the description lacks guidance on when to choose this over the sibling save-to-file-system tool, and does not mention dialog behavior or failure modes. The Promise<void> return type partially compensates for the missing output schema.

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?

The signature 'fileData: File | Blob, fileName?: string' adds real meaning beyond the generic 'args' array in the schema. It supplies parameter names, types, and optionality. The windowId parameter is only covered by the schema, but it is already clearly described there.

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

Purpose4/5

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

The description clearly states the function: 'sys_FileSystem.saveFile(...)' and explains it saves an incoming file stream to the local machine. This is a specific verb+resource combination, but it does not explicitly distinguish itself from the similarly named sibling 'eda_sys_file_system_save_file_to_file_system'.

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

Usage Guidelines2/5

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

No guidance is provided about when to use this tool versus alternatives. The remark about calling 'browser download interface or Electron save file interface' hints at context, but there is no explicit mention of conditions, exclusions, or the more appropriate sibling for saving to a specific file system path.

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

Deploy Server

Other Tools