add_portal
Places a door or window portal at a woxel position, mounting it to the nearest wall and cutting a gap for the opening. Returns the new element ID.
Instructions
Add a door/window portal at a woxel position. Returns the new element id.
By default the portal MOUNTS on the nearest wall and the wall cuts a gap around it (like placing a door by hand).
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": {
"asset": "<asset>"
},
"name": "add_portal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| flip | No | ||
| snap | No | ||
| asset | Yes | ||
| mount | No | wall | |
| closed | No | ||
| radius | No | ||
| rotation | No | ||
| snap_max | No | ||
| fallback_free | No |