fgui_clear_atlas_markers
Removes incorrect atlas="alone" markers from a FairyGUI package.xml on disk, previewing by default and only clearing markers that fit actual constraints.
Instructions
清除磁盘 package.xml 中错误的 atlas="alone" 标记(只处理按真实约束装得下的图片)。
默认只预览,execute=True 才写;可用 item_ids / item_names 限定目标。 这是带外修改:绕过编辑器对象模型,不可撤销、不进 Agent 撤销栈。执行前会保存 当前包并备份 package.xml,写后回读磁盘并 Dispose + 重开包。包内有未保存文档时 直接拒绝;有已保存的打开文档时,需要显式 close_open_documents=True 才会关闭它们。
只清除错误标记,不写任意图集归属;装不下或无法判定的 alone 标记会保留并在 held 里说明原因。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package_name": "<package_name>"
},
"name": "fgui_clear_atlas_markers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| execute | No | ||
| item_ids | No | ||
| item_names | No | ||
| package_name | Yes | ||
| close_open_documents | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||