Open, close or lock doors
set-door-stateChange Foundry VTT doors to open, closed, or locked by wall ID, with instant player updates and optional dry-run validation.
Instructions
Set doors (walls with door "door" or "secret") to open, closed or locked. Every id must be a door of the scene, else nothing changes. Players see the change at once. Needs the level "change" for scenes.
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": {
"wallIds": "<wallIds>",
"state": "<state>"
},
"name": "set-door-state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | The new state | |
| dryRun | No | Only check and report what would happen, including a refusal; change nothing | |
| wallIds | Yes | Ids of the door walls, 1 to 200 | |
| sceneIdentifier | No | Scene id or name; default the scene that is active for everyone |