Skip to main content
Glama
mayjack0312
by mayjack0312

eda_sch_manufacture_data_get_png_file

Export schematic manufacture data as a PNG image. Set width or height for high-resolution output up to 4096 px, preserving aspect ratio.

Instructions

sch_ManufactureData.getPngFile(fileName?: string, resolution?: ISCH_ExportPngResolution) -> Promise<File | undefined> 获取 PNG 文件 remarks: 支持按长宽分辨率导出高清图片(最大 4096); 支持只传入 width 或 height 中的任意一个,另一侧将按原始比例自动拉伸输出; width 与 height 均不传时,按当前一倍分辨率输出

ADD since EDA v3.2.183 / EDA v4.1.23 returns: PNG 文件数据(或压缩包)

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of disclosing behavior. It explains the maximum resolution of 4096, the optional width/height behavior, the default 1x output when both are omitted, and the return type Promise<File | undefined> plus the possibility of a compressed package. This is substantial, though it does not mention prerequisites or side effects.

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 and logically organized: signature, one-line purpose, bullet-style remarks, version availability, and return information. Every line contributes useful information, though the formatting is a bit dense for an agent to parse quickly.

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

Completeness4/5

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

For an export tool with no output schema and no annotations, the description covers the return value, resolution limits, default behavior, and availability version. It does not explain how fileName is used or the exact shape of ISCH_ExportPngResolution, but overall it is reasonably complete for its complexity.

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 input schema only contains a generic args array and windowId, so the description supplies the real parameter semantics: fileName?: string and resolution?: ISCH_ExportPngResolution, including the scaling rules for width/height. This adds meaning well beyond the generic schema definition.

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 action '获取 PNG 文件' and includes the method signature sch_ManufactureData.getPngFile, identifying the resource as a PNG export from schematic manufacture data. It is specific about the verb and resource, but it does not explicitly distinguish itself from sibling export tools such as get_svg_file or get_pdf_file, so it stops short of a 5.

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 on when to use this tool instead of alternatives like SVG, PDF, or BOM export tools. The remarks explain parameter behavior but do not state when PNG export is appropriate or when another sibling tool should be chosen.

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