Map Create
map_createCreate a campaign map from an existing image asset for CozyVTT, setting name, dimensions, grid size, and optional spirit layer. The new map is added without switching the active map.
Instructions
Create a campaign map using existing image assets (DM only). Use map_list to inspect existing maps and map_switch to activate one; creation does not switch the current map. This creates a map with empty tokens and annotations, not an uploaded image. Upstream checks image access and normalizes asset URLs. Each accepted call creates another map; do not blindly retry an uncertain result. Returns upstream {map} in data without a broadcast receipt. REST validation and permission 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Nonblank display name for the new map; upstream trims it. | |
| width | Yes | Map width as a positive integer, in grid units. | |
| height | Yes | Map height as a positive integer, in grid units. | |
| grid_size | No | Positive integer pixels per grid square; defaults to 50. | |
| image_url | Yes | Existing map image asset ID or URL; upstream checks asset access. No file upload. | |
| spirit_layer_url | No | Optional existing spirit-layer image asset ID or URL; null omits it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||