fgui_move_package_item
Moves a FairyGUI package item into another in-package folder, creating missing folders by default and flagging stale fileName references.
Instructions
把包资源移动到包内另一个目录;磁盘文件同步移动,不可撤销。
folder_path 是包内目录(如 "/ui/")。编辑器原生 MoveItem 要求目标目录已存在, 否则会抛原生异常;本工具默认按 create_folders=True 先建目录再移动,并在响应里回报是否新建了目录。 移动不会更新引用方文档的 fileName 属性(id 不变,运行时按 id 解析不受影响),响应里的 staleFileNameSlots 会列出这些位置。
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": {
"folder_path": "<folder_path>"
},
"name": "fgui_move_package_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| save | No | ||
| verify | No | ||
| item_name | No | ||
| item_path | No | ||
| folder_path | Yes | ||
| package_name | No | ||
| create_folders | No | ||
| close_open_documents | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||