设置角色场景道具形象主图
pavo_script_set_asset_main_imageSet an uploaded HTTPS image as the main image for a character, scene, or prop state; validate the state fingerprint and pixel dimensions, then save and verify the asset version without generation.
Instructions
将已上传的HTTPS图片设为指定状态的形象主图main_image。asset_type为character/scene/prop;须传get_assets对应states指纹与真实像素宽高,比例自动计算,thumbnail_url省略时使用原图。核归属、只读、同名状态歧义及UNKNOWN,按官网art-versions(sync_to_entity=true)保存版本并回读主图;不会触发生成。参考图使用save_asset_state;设置形象图片使用本工具。官网无CAS,避免同时在网页编辑同一状态。
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": {
"project_id": "<project_id>",
"asset_type": "<asset_type>",
"asset_id": "<asset_id>",
"state_id": "<state_id>",
"image_url": "<image_url>",
"width": "<width>",
"height": "<height>",
"expected_sha256": "<expected_sha256>",
"operation_id": "<operation_id>"
},
"name": "pavo_script_set_asset_main_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| asset_id | Yes | ||
| state_id | Yes | ||
| image_url | Yes | ||
| asset_type | Yes | ||
| project_id | Yes | ||
| operation_id | Yes | ||
| thumbnail_url | No | ||
| expected_sha256 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||