Skip to main content
Glama
fgui-agent-bridge

fgui-agent-bridge

by Wilson520403

fgui_insert_loader

Creates a Loader component under the current document's root, positioning it with size, fill, and alignment, and optionally saving; accepts only project-internal image or MovieClip URLs.

Instructions

在当前文档根组件下创建 Loader(0.8.25+)。

url 可空,或引用工程内图片/MovieClip;不接受外部 URL。 固定 autoSize=false,x/y/width/height 向零截断并回报 rounded。 默认不保存;不进 Agent 撤销栈,未保存可 discard。save 保存整个文档。 external_reload 要求 save=true 且 verify=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_insert_loader"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
urlNo
fillNonone
nameNo
saveNo
alignNoleft
widthNo
heightNo
verifyNo
v_alignNotop
shrink_onlyNo
external_reloadNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.25

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does it well: fixed autoSize=false, coordinate truncation toward zero with a 'rounded' report, default no-save, non-participation in the Agent undo stack, discarding unsaved changes, and the fact that save writes the entire document. It omits auth/permission context and return shape details, but the mutation and persistence semantics are unusually well disclosed.

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 dense and front-loaded, leading with what is created and how url behaves before the state/persistence notes. The terse phrasing is efficient rather than noisy, though the bullet-like fragments border on note form rather than prose.

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 tricky state behavior (undo stack exclusion, save scope, discard) is covered. Against 13 undocumented parameters with no annotations, the five unexplained layout/style parameters remain unaddressed.

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 description coverage is 0% across 13 parameters, so the description must compensate; it covers url, x/y/width/height, save, verify, and external_reload, which is real added meaning. It leaves fill, name, align, v_align, and shrink_only entirely unexplained, so roughly a third of the parameters have no semantics anywhere.

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 names a specific verb and resource (create a Loader under the current document's root component) and adds a version constraint (0.8.25+), so the agent knows exactly which object type is produced. It does not explicitly contrast itself with fgui_insert_object or explain when the generic insert should be preferred instead.

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 states concrete preconditions: url may be empty or must reference an in-project image/MovieClip, external URLs are rejected, and external_reload requires save=true with verify=true. However, there is no guidance on when to choose this tool over the sibling fgui_insert_object, nor any exclusions for the other 13 parameters.

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