world-item-update
Update a world item — name, image, folder, or system data. Folder is TRI-STATE: omit to leave alone, set string to set a new folder, set EXPLICIT null to move the item to root. Pass clearFolder: true if your client cannot send literal null and you want the move-to-root behaviour. system is deep-merged by Foundry — pass partial paths to surgically modify nested fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| img | No | New image path. Omit to leave unchanged. | |
| name | No | New name. Omit to leave unchanged. | |
| folder | No | Tri-state: omit = leave alone, string = set folder ID, null = move to root. | |
| itemId | Yes | World item ID to update | |
| system | No | System-data partial. Deep-merged into existing — pass only the keys you want to change. | |
| clearFolder | No | Alternative move-to-root signal for clients that cannot send literal JSON null. When true, overrides any folder value. |