Create a world page
imagine_create_world_pageCreate a new page inside a world. Required: worldId, name. Use this for NPCs, locations, organizations, events. Valid documentType values: generic, character, location, organization, event, lore, religion, cosmology. Items and rules are NOT page types; author them in vault and reference them, not as world pages. Set the tags array so the page is filterable via imagine_list_world_pages_by_tags; the page's documentType is also auto-added to the searchable keyword set. Pass visibility: 'gm' for a GM-only page (seen only by the world's owner, its contributors, and an admin with Admin Mode on; 404 and absent from lists for everyone else) or visibility: 'masked' for a page that participates in lists and backlinks under maskName ('Redacted' when unset) with its real name, link, and content hidden until revealed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | No | URL-safe slug. Lowercase letters, numbers, hyphens, slashes. Choosing a page link needs Premium, VIP, or admin: without it, create ignores the link and derives one from the name, and an update that changes it is refused. | |
| name | Yes | Page name. Required. | |
| tags | No | Tag list. Stored as a comma-separated `keywords` string on the wire. | |
| image | No | ||
| active | No | ||
| aliases | No | ||
| content | No | Page body in markdown. Imagine renders this verbatim. REPLACED wholesale on update. | |
| details | No | ||
| gmNotes | No | GM-only notes attached to the page. | |
| ruleset | No | ||
| summary | No | Short page summary; capped at 150 characters by imagine. | |
| worldId | Yes | World to add the page to. | |
| maskName | No | What everyone who does not edit the world (its owner, a contributor, or an admin with Admin Mode on) sees instead of the page's name while visibility is 'masked'. Empty renders as 'Redacted'. | |
| parentId | No | Mongo `_id` of the parent world page (tree structure). | |
| template | No | ||
| eventDate | No | Optional in-world event date for chronology-shape pages. | |
| menuLabel | No | ||
| menuOrder | No | ||
| showInMenu | No | ||
| visibility | No | Page visibility. 'gm' pages exist only for the world's owner, its contributors, and an admin with Admin Mode on — every other viewer gets a 404 and the page is absent from lists, search, backlinks, and breadcrumbs. 'masked' pages participate in lists, tags, backlinks, and breadcrumbs but present maskName/maskSummary and an id-based URL to everyone else; the real name, link, content, and aliases stay hidden until the page is flipped to public. Hidden pages are barred from the world menu. Default: 'public'. | |
| maskSummary | No | Optional teaser everyone who does not edit the world sees on the masked page; the real summary and content stay hidden. Max 255 characters. | |
| documentType | No | ||
| isWorldChild | No | ||
| outboundLinks | No | ||
| relationships | No | ||
| showBreadcrumbs | No | ||
| vaultCharacterId | No | Bind this page to a vault character (for character-shape world pages). | |
| playCampaignCharacters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||