Map Delete
map_deleteRemove a campaign map, including its tokens and state, after switching to a different map. Deletion is permanent and DM-only.
Instructions
Delete a campaign map and its stored tokens and map state (DM only). Use map_list to inspect maps first; use map_switch to select another current map before deletion. Upstream rejects deletion of the current map with HTTP 400. Use token_delete to remove only one token instead of the entire map. Deletion is destructive and has no undo tool. Repeating leaves the map absent but may return a not-found error. Returns upstream {message} in data without a broadcast receipt; REST permission and resource errors retain upstream diagnostics. Returns {ok:true,data} on success; tool-body failures return {ok:false,error} with optional diagnostic data. Argument-schema errors are MCP errors.
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": {
"map_id": "<map_id>"
},
"name": "map_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_id | Yes | Map ID in the configured campaign to delete; must not be the current map. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||