Skip to main content
Glama
fgui-agent-bridge

fgui-agent-bridge

by Wilson520403

fgui_duplicate_object

Duplicate an unlocked, ungrouped FairyGUI object with preserved properties, resources, and gear/relation data, generating a new ID and optional coordinate offset.

Instructions

原生复制一个根组件下未锁定、未分组的普通对象(0.8.24+)。

保留序列化属性、资源引用、Relation/Gear/扩展覆盖,生成新 ID,追加到末尾。 dx/dy 是相对源坐标偏移,默认原位;几何向零截断并返回 rounded。 不支持组或组成员,不进 Agent 撤销栈。save 保存整个当前文档; external_reload 需 save=True,并验证副本序列化内容和显示列表。

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": "fgui_duplicate_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
dxNo
dyNo
nameNo
saveNo
verifyNo
object_idNo
object_nameNo
object_pathNo
external_reloadNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.25

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose a lot: preserved serialized properties/references/overrides, a new generated ID, append-to-end placement, and notably that the operation does not enter the Agent undo stack. What it omits is the failure surface — what happens if the target is locked or grouped, whether a document must be open first, and whether the append position is reversible.

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 constraint-heavy opening and the offset/geometry sentence are front-loaded and every clause carries information; nothing is filler. The final line jams three unrelated behaviors (save scope, external_reload precondition, verify semantics) into one run-on sequence, which slightly hurts scanability.

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?

An output schema exists, so return values need not be explained, and the description covers the mutation, persistence, and verification semantics that an agent needs to call it safely. The remaining gap is the undocumented target-selection parameters, which leaves ambiguity about how the source object is actually identified.

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

Parameters3/5

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

Schema coverage is 0%, so the description must compensate for all 9 parameters and only partially does: dx/dy (offset from source, default in-place, toward-zero truncation with rounded return), save (saves the whole document), and external_reload (needs save=True) are explained. The target-selection trio object_id/object_name/object_path is never described — notably whether they are alternatives or combined — and the 'name' parameter is unmentioned entirely.

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?

States a specific verb and resource ('duplicate an unlocked, ungrouped normal object under a root component') plus a version gate (0.8.24+), which is far more precise than a bare 'duplicate'. The qualifier 'object' implicitly separates it from fgui_duplicate_package_item and fgui_duplicate_transition, though it never names those siblings to make the distinction explicit.

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?

Gives real exclusion criteria — does not support groups or group members, and external_reload requires save=True — so an agent can rule itself out. It never names a fallback tool for the excluded cases (e.g. for duplicating a group), so the guidance stops short of full routing.

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