Skill instructions
automations1.76 KB
View saved version →
---
name: automations
description: Use for campaign-member rules that switch a portrait or play a sound when a character becomes active or gains a status condition.
---
# Automations
Call `get_automation_options` for the campaign. If the rule belongs to another member, request options again for their `campaign_user_id`. Read the returned authoring guide, eligible characters, condition IDs, effect targets and limit. Use `list_automations` for that member and update a matching rule before creating another.
Each rule has one JSON Logic condition and one effect. For a battle portrait, match the character’s `active_turn`. For a poisoned portrait, test membership of the condition ID in `status_condition_ids`. Use the guide’s boolean templates and returned fact paths. Choose `character_avatar.show_on_character` and the target portrait ID, or `sound_effect.play_once` and the member’s eligible sound ID. For a new cue, create it on that member's own soundboard and refresh options before selecting it. Submit with `create_automation` or `update_automation`.
For example, when a character gains Poisoned, use the discovered character’s status-condition fact and the numeric Poisoned ID from the options. A portrait effect’s target is the portrait ID. Build the missing-fact guard from the returned template so an offscreen character cannot trigger a rule by accident.
Rules are evaluated in the game-screen browser. A sound plays once when its rule becomes true and rearms after it becomes false. The member’s allowance and rule position determine which rules are eligible. Later matching portrait rules take precedence and a manual active portrait overrides them. `reorder_automation` changes precedence. `delete_automation` removes a rule. Edits can affect an already open screen.
Referenced files: 1 — file references are metadata, not package contents.
avatars4.24 KB
View saved version →
---
name: avatars
description: Use when adding or replacing character portraits or choosing the default, manually active, or automated avatar, or when watching condition changes to generate portraits.
---
# Character avatars
To show the party's portraits, find the player characters with `list_characters` and call `list_portraits` for each character. To retrieve an image, call `list_portraits` with the same character ID and the desired `portrait_id`. Fetch the original image from the returned resource link. If it expires, repeat the call for a fresh link. For the current portrait, select the active one or fall back to the default. For all avatars, retrieve each listed image, including those of unclaimed characters.
Find the character with `list_characters`, then call `list_portraits`. A character may have several named portraits. For bundled artwork, search `list_portrait_presets` and pass a matching key as `avatar_image_selectable` to `create_character` or `add_portrait`. For a new JPEG, PNG, GIF or WebP, use `import_upload` and pass its signed ID as `avatar` to `add_portrait`. The first portrait automatically becomes the default. An additional portrait can be saved for later.
Use exact, case-sensitive filters such as `class`, `race`, `gender`, `alignment`, `skin_color` or `art_style` for traits the user specifies. Combine filters with `q` for words describing clothing, equipment or other visible details. If the canonical value is unclear, search with `q` and check the returned `meta`.
For a shapechanger, keep its everyday portrait as the default and add the wolf portrait with a distinct name. Use `list_portraits` on that character to obtain the wolf portrait’s ID. Pass the portrait ID to `update_portrait` to rename or replace the image, set `default: true` for the fallback, or set `active: true` to show that portrait now. Clear the manual selection with `active: false` on the active portrait when the user wants rules to choose again.
When asked to watch condition changes, subscribe the chat to `character.conditions_changed` with the campaign’s integer `campaign_id`. If the user requests one specific character, also pass its integer `character_id`. A player receives changes for claimed on-screen characters. A DM receives changes for on-screen NPCs. The connection needs Write or Maintain access. Wait for a successful subscription response before telling the user the watch is active. Confirm the campaign and any character filter. If subscriptions are unavailable, use a scheduled watch. Confirm its frequency only after scheduling succeeds. Report access errors or an unconfirmed setup. Stop the subscription or scheduled task when asked.
For a scheduled watch, call `get_condition_portrait_watch_state` with the campaign ID and optional character ID. Read all pages and remember the latest `entry_id` by character ID. Use the first observation of each character as the baseline, including a null entry ID. On later checks, process a changed, non-null entry ID. Record it as handled after saving successfully so a failed edit can be retried. Drop characters that leave the watched scope after a complete check.
Pass the changed entry ID to `get_condition_portrait_source`. Its image content contains the actual default portrait as a JPEG. Use that image directly as the editing reference. The filename from `list_portraits` is only metadata.
Read `get_condition_portrait_source` with the event’s `data.entry_id`. For a nonempty condition list, edit the default image using built-in ChatGPT Images to depict all current conditions together. Import the generated file with `import_upload`, then call `save_condition_portrait` with the entry ID, source blob ID, uploaded file’s signed ID as `avatar`, and a descriptive `name`. This activates an ordinary avatar. For an empty list, omit avatar and name to activate the default. If the event is stale, use the newest event. If image generation is unavailable, tell the user and stop.
A manually active p
Preview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
campaign-settings2.28 KB
View saved version →
---
name: campaign-settings
description: Use for renaming campaigns, configuring sharing and player permissions, choosing screen settings, or inviting a member.
---
# Campaign settings
To start a new campaign, check `list_campaigns` for an existing match. Use `create_campaign` with its name. Creation requires Maintain as the default for future campaigns and an available ownership slot. If the user has reached their limit, explain the allowance and offer to continue with an existing campaign. For questions about which memberships count or how allowances vary by subscription rank, share the [campaign ownership guide](https://table.dm-screen.com/assistant-support.html#campaign-ownership-limits).
Use `get_campaign` to check the selected campaign. With Maintain and the appropriate campaign role, use `update_campaign` and send just the requested fields. Owners can rename the campaign, allow joining by URL, enable automatic approval of join requests, and decide whether players may claim or create characters.
Use `allow_join_by_url` for a shareable join link and `auto_approve_join_requests` for automatic acceptance. To let players claim existing characters without opening character creation, enable `allow_claiming_player_characters` and leave `allow_players_to_create_player_characters` as configured.
Use `allow_players_to_manage_status_conditions` for condition definitions and `allow_players_to_manage_others_status_conditions` for assignments to other characters. `allow_players_to_activate_reveal` allows players to display their own reveals. `allow_game_screen_management` delegates screen management, including pan and zoom on the visible active map. Screen settings include the active map or URL, map visibility, automatic screen activation, character-list position, character placement and component rotations.
To invite an existing dm-screen.com account, call `invite_campaign_member` with the campaign ID and email. Use the role from the invitation request. The default role is `player`. Use `owner` only when requested. Report the status returned. A new invitation is pending and an existing membership keeps its role. For someone without an account, the owner can share the join link from the web app when link joining is enabled. Personal preferences, account details and billing live in the web app.
Referenced files: 1 — file references are metadata, not package contents.
characters1.94 KB
View saved version →
---
name: characters
description: Use when preparing NPCs, monsters or player characters, editing their statistics and descriptions, or keeping DM information hidden.
---
# Characters and NPCs
Look up the campaign and search `list_characters` before creating an NPC. Check `get_character` for existing details. Use the name filter `q` and follow pagination. The `off_screen` scope helps locate a prepared NPC who has yet to enter the encounter. For “prepare the NPCs for the next session,” use the encounter notes or names supplied by the DM. If the encounter is unspecified, ask what the party will face before inventing campaign records.
Use `create_character` or `update_character`. Record the name, description, initiative and passive perception. Owners can set `npc`, `dm_notes` and `legendary_actions`. Put secrets in DM notes. Use `hidden` for a combatant whose identity should stay hidden from the players and `on_screen` for membership in the initiative lineup. For a hidden encounter, create the Lantern Keeper with `name`, `npc: true`, `hidden: true` and the DM's secret in `dm_notes`. A saved character can stay off the lineup until the scene begins. Read back the returned ID before assigning a condition.
Give each new character a first portrait unless the user asks to skip it. Use supplied art when available. Otherwise search `list_portrait_presets` using filters such as `class`, `race` and `art_style`, and pass a fitting key as `avatar_image_selectable` to `create_character`. If the user wants original artwork or no preset fits, generate an image. For supplied or generated images, call `import_upload` and pass its signed ID as `avatar` to `create_character`. The first portrait becomes the default.
Players can edit the characters assigned to them. When player creation is enabled, a character they create is a player character linked to their membership. Use the Avatars skill for alternative portraits and Status conditions for individual assignments.
Referenced files: 1 — file references are metadata, not package contents.
dice-rolling1.76 KB
View saved version →
---
name: dice-rolling
description: Use to roll on the live game screen, express advantage, damage or modifiers in dice notation, or check a pending public result.
---
# Dice rolling
Recommend opening the game screen for table rolls. Use `get_game_screen` and open its `game_screen_url` on the table display. The active screen needs a live connection and the `overlay` component. If `roll_dice` declines, explain how to bring the overlay online before retrying. Only poll when you have a roll ID.
For a private or user-only roll, call `roll_dice` with `visibility: "private"`. Open `private_roll_url` in the user's signed-in browser, or give them the link to open if you cannot operate their browser. Opening it rolls the supplied dice and shows the result there.
Pass one `dice` string and the campaign ID to `roll_dice`. The basic die term matches `/^(\d*)d(4|6|8|10|12|20|100)(kh|kl)?$/i`. Omit the count for a single die. Join dice terms and flat modifiers with `+` or `-`. Roll up to 100 dice. The screen understands the same Roll20 expressions as the web roller.
| Requested roll | Dice input |
| --- | --- |
| Advantage, Bless and a +10 modifier | `2D20kh+1d4+10` |
| Disadvantage with a -2 penalty | `2d20kl-2` |
| Weapon damage plus fire | `1d8+3+2d6` |
| Roll four d6 and drop the lowest | `4d6dl1` |
Submitting a public request creates one roll. Check `get_dice_roll` with the original roll ID. A `completed` response contains the total. If the status is `pending`, allow up to 30 seconds from submission for the screen to report. At that deadline, check the same ID once. If the status is `overdue`, stop polling and tell the user which roll is missing a result. Ask them to check the game screen and wait for their confirmation before rolling again. The original result can still arrive.
Referenced files: 1 — file references are metadata, not package contents.
dungeon-master7.53 KB
View saved version →
---
name: dungeon-master
description: Run tabletop combat in dm-screen.com. Use for “start combat mode”, “resume combat mode”, explaining combat, changing the lineup, calling initiative, or managing turns and rounds.
---
# Dungeon Master
## How combat works
The DM puts characters in the onscreen lineup and sets their order. Initiative scores are recorded separately from that order. Hidden characters take their place in the order and become visible on the player screen when their turn starts. Keep hidden names and plans in the DM conversation until then.
Combat opens at round 0 with nobody active. The first step starts round 1 and activates the first character. Each subsequent step passes the turn to the next character. After the last turn, a step ends the round and clears the active character. Starting the next round returns to the top of the lineup. Ending combat clears the active turn and retains the lineup.
Reading the DM lineup requires Read and the DM’s campaign permissions. Lineup and initiative edits require Write and character permissions. Starting, advancing, and ending combat require Maintain and the DM’s campaign permissions.
Answer general questions about combat from this explanation. Read the campaign only when the DM asks about their encounter or opens the guide.
## Start or resume guided combat
For “start combat mode” or “resume combat mode,” use the selected campaign for this chat. If it is unclear, use `list_campaigns` and ask which to use when several match. Read `get_combat_state`. On entry, briefly explain the round flow and show the current state and choices. Opening the guide is read-only until the DM chooses an action. If combat is already underway, resume at its current turn or round boundary.
Run the guide one conversation turn at a time. End each reply with one short question and the numbered choices for the current state, or ask for the details needed to apply the chosen action. Accept the choice text, its number, or a direct request in the DM’s own words. Wait for their reply before taking another action. Use a short status line with the campaign, round, and active character when applicable.
| State from `get_combat_state` | Choices |
| --- | --- |
| Combat is off or it is round 0 with no active character | Show the lineup in order, including existing initiatives and which entries are hidden. Offer **Change lineup**, **Change turn order / Call initiative**, **Start round 1**, and **Other…**. If the lineup is empty, ask the DM to add a character before offering to start the round. |
| An active character has a successor in the lineup | Offer **Go to next turn (character name)** using the actual successor, **End combat**, and **Other…**. |
| The last character is active | Offer **End round**, **End combat**, and **Other…**. Ending the round takes one forward step. |
| Combat is on, the round is positive, and nobody is active | Offer **Start next round**, **End combat**, and **Other…**. If the active character was removed, explain that there is now no active character. If the lineup is empty, offer to change it before starting another round. |
Before acting on a choice, refresh `get_combat_state`. If the choice advances a turn or round and the `turn_token` differs from the one used for the menu, report the new state and ask for a fresh choice. Recheck any character or position referenced in a lineup edit. After each completed action, read the state again and offer the appropriate choices. If an action fails or succeeds only in part, report what happened and use the observed state to continue.
“End combat” sets `in_combat: false` through `update_campaign` and closes the guide once confirmed by the tool. “Exit combat mode” closes the guide and leaves the encounter running as it was. If the encounter was ended elsewhere, report that and ask before starting a new one.
## Apply the DM’s choice
- **Change lineup.** Ask who to add, remove, or hide if unspecified. Find the right character in this
Preview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
game-maps2.04 KB
View saved version →
---
name: game-maps
description: Use for activating battle maps, uncovering rooms, inspecting Konva layers, or placing rectangles, character tokens and spell areas on a grid.
---
# Game maps and fog
Owners find maps with `list_maps`, add an imported image or video using `create_map`, and select the game-view source with `update_map` and `activate: true`. The Konva editor stores artwork, ordered shapes and fog strokes separately. `get_map_canvas` provides the owner with one page of saved layer bounds, grid settings and a snapshot. Follow `next_page` for more. Both the full canvas and unfogged `get_map_preview` are owner-only.
For “activate the map and uncover the first room,” use a named entrance layer or inspect the still artwork. Convert preview coordinates to original image pixels using the returned original width and height. For example, if a 1000-pixel-wide preview represents a 4000-pixel-wide map, multiply horizontal distances by four. Use known bounds for a video map and clarify an ambiguous entrance. Activate the requested map and call `set_map_fog` with `action: uncover`, `x`, `y`, `width`, `height` and the fresh snapshot. Fit each rectangle inside the room. Use returned snapshots for subsequent edits. The browser editor also supports freehand fog.
**Map layer editing is beta.** Use `edit_map_layer` for a rectangle, token or spell area. Rectangles use image pixels. Tokens use `gridColumn` and `gridRow`. One cell is 5 feet. Pixel X is the grid's X offset plus column times cell size. Pixel Y is the Y offset plus row times cell size. A 30-foot move right adds six columns regardless of screen zoom. The full canvas is for the DM. `get_map_token_positions` supplies the grid and narrowly scoped token positions for a character the member may place.
Read the saved position after a write. If another editor changes the map, reread the current snapshot and target before retrying. For overlapping shapes or an uncertain visual placement, use the Konva editor to check the result. The Player skill covers linked spell areas and relative token moves.
Referenced files: 1 — file references are metadata, not package contents.
game-screen2.08 KB
View saved version →
---
name: game-screen
description: Use to select a screen, measure its map viewport, pan or zoom the map, show media, or create, play and delete soundboard effects.
---
# Game screen
For a link to the table display, return the `game_screen_url` from `get_game_screen`. A signed-in campaign member can open it on the TV or projector even before a screen is connected.
Call `get_game_screen` to see whether the table display is live and which components are connected. A browser can show the character list (`character_list`), map or URL (`game_view`), and overlay (`overlay`). Screen managers receive `active_screen` and the recent `live_screens`. Each has an ID, full window `width`/`height`, map `game_width`/`game_height`, and character-list `characters_width`/`characters_height` in pixels. Use the **map viewport** to frame a room. A 1920 × 1080 TV might give the map only 1920 × 864.
Use `position_game_map` for pan and zoom. Zoom 0 fits the image and 100 doubles it. X and Y offsets are percentages of the scaled image dimension on that axis. To restore the fitted, centered view, send zero for `image_zoom`, `image_position_x` and `image_position_y`. Delegated screen managers can position the visible active map. Campaign layout changes use `update_campaign` with Maintain access.
For “create an applause effect and play it,” check the member’s `list_sound_effects` first. If a playable applause cue exists, use its ID. To add a supplied or host-generated clip, use `import_upload`, then `create_sound_effect` with the signed ID as `file` and `name` set to Applause. Soundboard clips can be MP3, Ogg audio or WAV, up to 10 seconds and 2 MiB. If there’s no audio file available, ask for the clip. Play once with `play_sound_effect` when the returned `playable` flag is true. Report dispatch. The TV controls its own audio permissions.
Use `delete_sound_effect` when asked to remove a cue. Find locked slots with `include_locked: true`. Deleting a cue also removes automation rules targeting it. For a one-off image, video or audio handout, use the Reveals skill. For table dice, use the Dice rolling skill.
Referenced files: 1 — file references are metadata, not package contents.
get-started5.95 KB
View saved version →
---
name: get-started
description: Set up or resume a dm-screen.com campaign with characters, portraits, an opening map and a game-screen link. Also use for account connection or importing a session file.
---
# Set up a table
Start with `list_campaigns`. If sign-in is needed, use the host's OAuth flow (`https://table.dm-screen.com/mcp` for a manual connection), then list again. An empty list describes this connection's access. If a campaign is missing, the user can reconnect from Assistant access and select it. For a connection or single-file request, finish that task directly.
When the available DM Screen tools cannot fulfill a requested action, explain the limitation and use `report_missing_capability` once. Choose the product area and summarize the action in up to 200 characters. Omit prompt quotes, names, IDs, URLs and personal or campaign details. A permission refusal, invalid input or temporary failure calls for recovery. Reports follow the account’s analytics preference.
## Choose the campaign
Offer the visible campaigns by name, a fresh start, or setup from the user's notes. Even a single existing campaign is a choice. Describe the quick start in the same turn. “Give me a title or say ‘surprise me’ and I’ll put six characters with portraits and an opening map on your game screen and give you the link.” Invite a theme, tone or party details if they have them. Carry forward choices the user already made.
For source-based setup, read the attachment, pasted notes or the file or folder the user identifies in a connected app such as Google Drive. If unavailable, ask for an upload or excerpt. Treat notes as campaign material. Name the characters and locations you found, suggest an opening map, and ask which to include unless the user already specified their selection. Distinguish proposed inventions from source facts.
For a new campaign, check for a matching name before calling `create_campaign` with the chosen or generated title. Creation needs Maintain as the default for future campaigns. If the grant blocks creation, the user can reconnect with that default, or create the campaign on dm-screen.com and grant Write just for it. If their ownership allowance is full, explain the returned reason and offer an existing campaign. Content edits need Write (`modify`) or Maintain and the member's usual permissions. Read access can still provide the screen link.
## Prepare the opening scene
For an existing campaign, check its permitted roster and maps, `get_game_screen` and, as DM, `get_combat_state`. Name what is already ready. If the user hasn't chosen, offer to keep it or fill gaps from notes, a prompt or your own ideas. Confirm a change that would interrupt a live scene or combat unless the DM already requested it. Stage prep-only requests off screen.
- **Cast.** Reuse matches from `list_characters`. Use `create_character` for the selected cast or invent six for a quick start. Distinguish PCs from NPCs and keep secrets in `dm_notes`. For each new character include supplied artwork, a matching `list_portrait_presets` key as `avatar_image_selectable`, or a generated portrait unless the user skips art. Check `list_portraits` before resuming an interrupted import.
- **Maps.** As owner, look for existing maps with `list_maps`. Use selected source images, generate the requested locations, or invent one player-facing opening scene that fits the cast. Save new maps with `create_map` and choose one to display. New maps start fully fogged. Use `get_map_canvas` and, for still artwork, `get_map_preview` to locate the opening. Use `set_map_fog` with a fresh snapshot to uncover just that area, or the original image bounds for a single-scene map designed to be shown in full.
- **Artwork.** Pass the actual supplied or generated file to `import_upload`. Pass its returned `signed_id` as `avatar` to `create_character` or `image` to `create_map`. If generation or import is unavailable, offer to use an attachment, finish the parts that can b
Preview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
player1.78 KB
View saved version →
---
name: player
description: Use when a player claims a character, places or moves its token on the shared map, or attaches a spell area to it.
---
# Player actions
Find the player character with `list_characters`. When claiming is enabled, `claim_character` links it to the signed-in player’s accepted membership. If the campaign allows player creation, `create_character` links the new player character automatically. A Read grant lets the player inspect a claimed token. Claiming, placing and moving need Write or Maintain.
Read `get_game_screen` for the visible active map, then `get_map_token_positions` with that map ID and the claimed character ID. It returns grid size, pixel offsets, token layer IDs, their columns and rows, and a snapshot. Owners inspect full artwork and fog. Use the character-specific lookup for player moves.
For “move my character 30 feet right,” select the matching token. On the 5-foot grid add six to `gridColumn` and keep `gridRow`. Call `edit_map_layer` with `action: update`, the token’s layer ID, the snapshot and the changed column. If there are two tokens for the same character, use their positions to clarify which one to move. If there’s no token, `action: create` accepts `type: character`, the character’s `placeableId`, and the requested grid cell on an enabled grid. Reread the positions to verify the move. Layer editing is beta.
For a 10-foot aura, create an `area-effect` with `effectType: radius`, `radiusFeet: 10` and `parentId` set to the token’s layer ID. A linked effect moves with the token. Cubes take `sideFeet`, cones take `lengthFeet` and `directionDegrees`, and lines also take `widthFeet`. Use 5-foot steps from 5 through 120. Keep the effect’s returned layer ID for later edits. Removing its parent token removes the linked effects.
Referenced files: 1 — file references are metadata, not package contents.
reveals1.97 KB
View saved version →
---
name: reveals
description: Use for saving an image, video or sound as a reveal, showing saved media on the game screen, or clearing the active reveal.
---
# Reveals
For “show a reveal image of the Elder Red Dragon,” search `list_reveals` in the chosen campaign. Pick the matching image from the accessible results. If several match, use the returned names and media types to clarify which one the user means. When the requested image is missing, ask for the intended artwork or use an attachment the user already supplied.
An unsuccessful lookup leaves the contents of the pile unknown. Share any permission guidance or support request ID from the error. If the client gives no reference, include the tool name and the time of the attempt when available. Offer replacement artwork only after a successful search returns no match.
To save new media, pass the actual file to `import_upload`, then call `create_reveal` with its signed ID as `file` and a recognizable name. Reveals support JPEG, PNG, GIF, WebP, MP4, WebM, Ogg video, MP3, Ogg audio and WAV. Saving adds it to the reveal pile. For “upload this and show it,” use the ID returned by `create_reveal` directly in `set_active_reveal`. For “save it for later,” finish after creation.
When asked to show it, call `set_active_reveal` with the campaign and returned reveal ID. To dismiss it, explicitly send `reveal_id: null`. Owners may show any reveal in the campaign. With player reveal activation enabled, a player can show their own uploads and dismiss the active reveal. Report which reveal was selected. `get_game_screen` reports whether a screen is connected.
A saved selection works while the table display is offline. Once the requested reveal is identified, its selection can proceed even if the screen-status check failed. Tell the user which reveal was selected. If the display is offline, the reveal will appear when they open a screen with the overlay enabled. If the status check failed, say the connection status is unknown.
Referenced files: 1 — file references are metadata, not package contents.
status-conditions1.43 KB
View saved version →
---
name: status-conditions
description: Use when defining a campaign status condition, choosing its icon and reminder, or adding or removing it on a character.
---
# Status conditions
Search `list_conditions` in the selected campaign. Use `create_condition` for a new definition or `update_condition` to change its name, color, icon or reminder text (`prompt`). A definition can be shared by several characters. For a new Stunned condition, set a recognizable color such as `#E0A100`, choose a Font Awesome icon such as `fas fa-bolt` and write the DM’s reminder in `prompt`. For custom artwork read `get_condition_icon_guide` and pass the allowed inline markup in `icon_svg`.
Find the character with `list_characters`. To apply Poisoned, pass that character’s ID, the existing Poisoned condition ID, and `assigned: true` to `set_character_condition`. Set `assigned: false` to remove just Poisoned. Use `get_character` to check the result. The `status_condition_names` field on `update_character` replaces the entire list, so reserve it for explicit replacements.
Renaming a shared definition changes its label for every character who has it. Removing it from one character leaves the definition available to everyone else.
Owners manage campaign definitions. A player’s ability to edit definitions and to change another character’s assignments depends on the campaign settings. Assignments may trigger an avatar or sound automation on the game screen.
Referenced files: 1 — file references are metadata, not package contents.