open_map
Opens a .dungeondraft_map file and replaces the current map, waiting for completion by default; refuses unsaved bridge edits unless discard is requested.
Instructions
Open a .dungeondraft_map file, replacing whatever is currently open.
Refused while the open map has edits made through the bridge since its
last save; the error says so. Then save_map first, or, only after the user
agrees to lose those edits, pass discard_unsaved=true. Edits made by hand
in Dungeondraft are not counted, so ask before opening over their work.
Loading is asynchronous AND it restarts the bridge: mods load after the map
does, so the bridge briefly stops answering and can come back on another
port. By default this waits until the map Dungeondraft reports open is the
one you asked for, and returns its size and level.
`opened: false` means that had not happened in time. The load may still be
running: read `note` and poll get_status rather than opening again.
wait=False returns as soon as the command is accepted.
path: absolute path to a .dungeondraft_map file.
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": {
"path": "<path>"
},
"name": "open_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| wait | No | ||
| discard_unsaved | No |