Skip to main content
Glama
Wilson520403

fgui-agent-bridge

by Wilson520403

fgui_create_component

Create a new FairyGUI component document in a target package; opens it by default, saves only when requested, and rejects duplicate names unless auto-rename is enabled.

Instructions

在指定包中新建组件文档;默认打开但不保存,重名时默认拒绝。

save=True 保存包与工程后默认比对 package.xml 条目;组件类资源没有可靠的 asset 重载手段,external_reload 不可用,strength 上限为 disk。

Input Schema

NameRequiredDescriptionDefault
saveNo
widthNo
heightNo
verifyNo
exportedNo
auto_renameNo
folder_pathNo
extension_idNo
package_nameYes
component_nameYes
create_foldersNo
open_after_createNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.8.6
    • addedInput schema / properties / save
      Added value: +{
      +  "default": false,
      +  "title": "Save",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / verify
      Added value: +{
      +  "default": true,
      +  "title": "Verify",
      +  "type": "boolean"
      +}
  2. First observedv0.6.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose meaningful behavior: default open-but-don't-save, default rejection on name conflict, that save=True triggers package/project save plus a package.xml comparison, and that component resources have no reliable asset reload with strength capped at disk. These are non-obvious operational facts. It stops short of explaining remaining behaviors (verify, exported, create_folders effects), so not a 5.

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?

Two tight sentences, front-loaded with the core action and defaults, then the save=True nuance. Slightly dense jargon (external_reload, strength 上限为 disk) but no wasted filler.

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?

An output schema exists, so return values need not be described, and the safety/default behavior is reasonably covered. But for a 12-parameter mutation tool with zero annotations and zero schema descriptions, leaving most parameter effects unexplained makes the definition only minimally complete.

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

Parameters2/5

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

Schema coverage is 0% across 12 parameters, and the description only explains save (its save-time behavior) and implicitly the duplicate-name handling tied to auto_rename. Width, height, verify, exported, folder_path, extension_id, create_folders and open_after_create are left entirely undocumented in both schema and description, so it does not compensate for the coverage gap.

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 gives a specific verb+resource — creating a component document in a named package — which is clear and actionable. However, it does not differentiate itself from the many similar create tools in the sibling list (fgui_create_button, fgui_create_movieclip), so it does not reach 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 Guidelines3/5

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

It conveys default behaviors (opens but does not save, rejects on duplicate names) which implies intended usage, but there is no explicit when-to-use guidance and no comparison against the sibling create tools. The agent must infer context.

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