Create walls, lights and other canvas elements
create-canvas-elementsCreate up to 200 walls, lights, sounds, tiles, drawings, or regions on a Foundry VTT scene in one call. Validate all entries first; any invalid element aborts the entire batch.
Instructions
Create up to 200 elements of one type on a scene in one call, as Foundry data. Walls: c [x0, y0, x1, y1], door none, door or secret, doorState closed, open or locked, move none or normal, sight, light and sound none, limited, normal, proximity or distance, dir both, left or right. Lights: x, y, config { dim, bright, color, angle }. Sounds: x, y, radius, path. Tiles: x, y, width, height, texture { src }. Drawings: x, y, shape { type, width, height, points }. Regions: name, shapes, behaviors. One bad entry creates nothing. Needs the level "change" for scenes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Only check and report what would happen, including a refusal; change nothing | |
| elements | Yes | The elements, 1 to 200, each an object of Foundry fields | |
| elementType | Yes | Type of all elements in this call | |
| sceneIdentifier | No | Scene id or name; default the scene that is active for everyone |