update-region
Update a Foundry VTT region by changing its name, color, visibility, shapes, or reshaping it to a grid rectangle. Only modifies provided properties.
Instructions
Update ONE region by id: rename, recolor, change visibility, replace its shapes whole, or reshape to a single grid rectangle via the rect convenience (center px + cells + snap — the move/resize you'd do reviewing a teleporter). Patches only what you pass; behaviors are left untouched. GM-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New region label. | |
| rect | No | Convenience: reshape to ONE grid rectangle centered at (x,y), sized in cells, grid-snapped by default (the move/resize the review loop wants). Ignored if `shapes` is given. | |
| color | No | New region tint hex. | |
| shapes | No | Replace the region shapes whole (v14 shapes in canvas px). | |
| regionId | Yes | Region id (from create-region / create-teleporter / list-regions). | |
| visibility | No | New visibility mode (0 layer / 1 gamemaster / 2 always). | |
| sceneIdentifier | Yes | Scene id or exact name holding the region. |