fgui_query_references
Find every package, resource, and property slot that references a target FairyGUI resource before changing it. Returns exact read-only dependency results with optional result limits and package-open control.
Instructions
查询全工程里哪些位置引用了目标资源(只读,0.8.10+)。
走编辑器原生 DependencyQuery,返回的每条引用精确到「哪个包的哪个资源的哪个属性槽」: packageId / itemId / propKey / arrayIndex / valueType。改资源引用前先跑它,能直接回答 「换掉这张图会影响哪些节点」,也可作为 replace_object_resource 的影响面预览。
只读:不会保存、不会标记文档修改。max_items 限制返回条数(默认 200,上限 2000), 截断时 truncated=true 且 totalCount 仍为真实总数,不会静默丢弃。 skip_package_open=True 跳过「预先打开未打开的包」,更快但可能少算未打开包里的引用; 默认会先打开,代价记录在响应的 packages 字段里。
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": {
"resource_url": "<resource_url>"
},
"name": "fgui_query_references"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_items | No | ||
| resource_url | Yes | ||
| skip_package_open | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||