Moddable Games Tools
v1.1.015 tools for chess variant analysis, hex map generation, and board game utilities
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
chess_generate_puzzle
Get a random chess puzzle. Filter by variant, difficulty or theme. Not every variant puzzle carries themes; use chess_list_puzzle_types to see what the pool holds.
| Parameter | Type | Description |
|---|---|---|
difficulty | string | Puzzle difficulty by rating: easy under 1200, medium 1200-1799, hard 1800 and above |
theme | string | Puzzle theme (fork, pin, skewer, mateIn2, etc). Not every variant puzzle carries themes. |
variant | string | Chess variant play slug (e.g. almost-chess, benedict, fischer-random, king-of-the-hill, standard); a manifest key such as chess960 is also accepted. Returns only puzzles for this variant. |
chess_list_puzzle_types
List available puzzle variants, themes, and per-variant counts from the puzzle pool
chess_list_variants
[DEPRECATED — use play_list_variants] List chess variants. Removal: v1.0.0.
| Parameter | Type | Description |
|---|---|---|
group | string |
chess_get_legal_moves
[DEPRECATED — use play_create_game + play_get_moves] Get legal moves for a chess position. Removal: v1.0.0.
| Parameter | Type | Description |
|---|---|---|
variant | string |
chess_analyze_position
[DEPRECATED — use play_suggest_move] Analyse a chess position. Removal: v1.0.0.
| Parameter | Type | Description |
|---|---|---|
depth | number | |
variant | string |
chess_make_move
[DEPRECATED — use play_apply_move] Apply a move to a chess game. Removal: v1.0.0.
| Parameter | Type | Description |
|---|---|---|
move * | object | |
variant | string |
chess_validate_move
[DEPRECATED — use play_validate_move] Check if a chess move is legal. Removal: v1.0.0.
| Parameter | Type | Description |
|---|---|---|
move * | object | |
variant | string |
chess_get_status
[DEPRECATED — use play_check_status] Get chess game status. Removal: v1.0.0.
| Parameter | Type | Description |
|---|---|---|
variant | string |
chess_render_svg
[DEPRECATED — use play_render_board] Render a chess position as SVG. Removal: v1.0.0.
| Parameter | Type | Description |
|---|---|---|
fen | string | FEN position string |
highlights | array | Squares to highlight (e.g. ["e2","e4"]) |
variant | string |
chess_make_moves
[DEPRECATED — use play_make_moves] Apply a sequence of chess moves. Removal: v1.0.0.
| Parameter | Type | Description |
|---|---|---|
moves * | array | |
variant | string |
chess_get_opening_book
[REMOVED — engine#98] Opening book resolution is broken in Worker context. No replacement.
| Parameter | Type | Description |
|---|---|---|
variant | string |
hex_list_games
List all available hex map game types with configuration options
hex_generate_map
Generate a hex map for a specific game and player count
| Parameter | Type | Description |
|---|---|---|
game * | string | Game type (nukes, colony, catan, age-of-steam, eclipse, twilight-imperium) |
players | number | Number of players (default: 2) |
seed | string | Random seed for reproducibility |
size | number | Map size (default: game default) |
hex_export_svg
Generate a hex map and export as SVG
| Parameter | Type | Description |
|---|---|---|
game * | string | Game type |
hexSize | number | Hex size in pixels (default: 30) |
players | number | Number of players |
seed | string | Random seed |
size | number | Map size |
style | string | Visual style |
hex_get_info
Get info about a specific hex coordinate (terrain, neighbours, distance)
| Parameter | Type | Description |
|---|---|---|
q * | number | Hex Q coordinate (column) |
r * | number | Hex R coordinate (row) |
game | string | Game context for terrain lookup |
seed | string | Map seed (to look up terrain from a generated map) |
hex_compute_fov
Compute field of view from a hex position
| Parameter | Type | Description |
|---|---|---|
q * | number | Origin Q coordinate |
r * | number | Origin R coordinate |
range * | number | Vision range in hexes |
game | string | Game context for obstacle lookup |
seed | string | Map seed |
hex_pathfind
Find shortest path between two hex coordinates
| Parameter | Type | Description |
|---|---|---|
endQ * | number | End Q |
endR * | number | End R |
startQ * | number | Start Q |
startR * | number | Start R |
game | string | Game context for movement costs |
seed | string | Map seed |
play_list_families
List all playable game families supported by the engine (chess, draughts, go, reversi, shogi, xiangqi, mancala, morris, hex, landlords-game, backgammon, standard-52, bavarian-32, flower-48, double-six-dominoes, mahjong, standard-dice, agon, asalto, chaupar, dou-shou-qi, fanorona, halma, nyout, pachisi, royal-ur, senet, stern-halma, surakarta, tafl)
play_list_variants
List available variants for a game family. Each variant can be passed to play_create_game. Variants with flags (e.g. +random) can be requested as "slug+flag".
| Parameter | Type | Description |
|---|---|---|
family * | string | Game family (chess, draughts, go, reversi, shogi, xiangqi, mancala, morris, hex, landlords-game, backgammon, standard-52, bavarian-32, flower-48, double-six-dominoes, mahjong, standard-dice, agon, asa… |
play_get_definition
Get the full engine definition (topology, render config, pieces, setup FEN) for a game variant. Returns the resolved frontmatter used to render and play the game.
| Parameter | Type | Description |
|---|---|---|
family * | string | Game family (chess, draughts, go, reversi, shogi, xiangqi, mancala, morris, hex, landlords-game, backgammon, standard-52, bavarian-32, flower-48, double-six-dominoes, mahjong, standard-dice, agon, asa… |
variant | string | Variant slug (default: the family's default game) |
play_create_game
Create a new game instance for a given family. Returns initial state to pass to subsequent calls. Variant can include flags like "grand+random" or "standard+drops".
| Parameter | Type | Description |
|---|---|---|
family * | string | Game family name (chess, draughts, go, reversi, shogi, xiangqi, mancala, morris, hex, landlords-game, backgammon, standard-52, bavarian-32, flower-48, double-six-dominoes, mahjong, standard-dice, agon… |
rngSeed | number | Optional RNG seed for deterministic games |
variant | string | Variant slug, optionally with flags (e.g. "grand", "grand+random", "standard+drops") |
play_get_moves
Get all legal moves for the current position. Requires state from play_create_game or play_apply_move.
| Parameter | Type | Description |
|---|---|---|
state * | object | Game state object returned by play_create_game or play_apply_move |
play_apply_move
Apply a move to the game and return the new state. Pass the move object exactly as returned by play_get_moves (format varies by family: chess uses {from,to}, go uses {coord} or {action:"pass"}).
| Parameter | Type | Description |
|---|---|---|
move * | object | Move object from play_get_moves (e.g. {from:"e2",to:"e4"} for chess, {coord:40} for go, {action:"pass"}) |
state * | object | Game state object from play_create_game or a previous play_apply_move |
play_check_status
Check the current game status: whose turn it is, whether the game is over, and who won.
| Parameter | Type | Description |
|---|---|---|
state * | object | Game state object from play_create_game or play_apply_move |
play_suggest_move
Use AI to analyse the position and suggest the best move. Supports 5 difficulty levels across all 30 playable families.
| Parameter | Type | Description |
|---|---|---|
state * | object | Game state object from play_create_game or play_apply_move |
difficulty | string | AI difficulty level (default: medium) |
play_render_board
Render the current board position as SVG for any playable family (chess, draughts, go, reversi, shogi, xiangqi, mancala, morris, hex, landlords-game, backgammon, standard-52, bavarian-32, flower-48, double-six-dominoes, mahjong, standard-dice, agon, asalto, chaupar, dou-shou-qi, fanorona, halma, nyout, pachisi, royal-ur, senet, stern-halma, surakarta, tafl).
| Parameter | Type | Description |
|---|---|---|
state * | object | Game state object from play_create_game or play_apply_move |
highlights | array | Optional cells to highlight (e.g. [{key: 52, color: "#ff0"}]) |
size | integer | Board width in pixels for PNG output (default: 480, max: 2048) |
play_export_fen
Export the current board position as a FEN-style setup string, in the form the variant's own frontmatter declares its starting position. Card, tile and dice games have no board position to export.
| Parameter | Type | Description |
|---|---|---|
state * | object | Game state object from play_create_game or play_apply_move |
play_load_fen
Create a game from a FEN-style setup string, as returned by play_export_fen. Pass the same variant the position was exported from.
| Parameter | Type | Description |
|---|---|---|
family * | string | Game family (chess, draughts, go, reversi, shogi, xiangqi, mancala, morris, hex, landlords-game, backgammon, standard-52, bavarian-32, flower-48, double-six-dominoes, mahjong, standard-dice, agon, asa… |
fen * | string | Position string in FEN-style notation for the family |
variant | string | Optional variant slug (default: the family's default game) |
play_validate_move
Check whether a move is legal in the current position without applying it. Pass the move object in the same format as play_get_moves returns.
| Parameter | Type | Description |
|---|---|---|
move * | object | Move object to validate (same format as play_get_moves output) |
state * | object | Game state object from play_create_game or play_apply_move |
play_make_moves
Apply a sequence of moves to a game and return the final state. Stops at the first illegal move. Move objects must match play_get_moves format.
| Parameter | Type | Description |
|---|---|---|
moves * | array | Array of move objects in the format returned by play_get_moves |
state * | object | Game state object from play_create_game or play_apply_move |
rules_list_games
List all available game rulebooks with metadata (players, duration, complexity, mechanics). Filterable by type, complexity, and mechanics.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by type (standalone, hub, classic, rpg, component, platform, mod, game) |
complexity | string | Filter by complexity level |
mechanic | string | Filter by mechanic (e.g. dice, capture, hex, oracle, narrative) |
status | string | Filter by status (default: all) |
rules_get_game
Get full rulebook content for a specific game (markdown). For metadata only, use rules_get_game_meta instead.
| Parameter | Type | Description |
|---|---|---|
game * | string | Game slug (e.g. chess, dnd-5e, catan) |
rules_get_game_meta
Get structured metadata for a game: players, duration, complexity, mechanics, how_to_play, variant list, page list, related games. Lightweight alternative to fetching the full rulebook.
| Parameter | Type | Description |
|---|---|---|
game * | string | Game slug (e.g. chess, backgammon, cairn) |
rules_get_page
Get a specific page/section from a game rulebook (e.g. character creation, combat rules, marketplace). Use rules_get_game_meta to see available pages.
| Parameter | Type | Description |
|---|---|---|
game * | string | Game slug (e.g. cairn, dnd-5e) |
page * | string | Page slug (e.g. character-creation, combat-and-difficulty) |
section | string | Section name (e.g. rules, classes, spells). Default: rules |
rules_get_variant_list
List all variants for a game with structured metadata (players, board, playable status, topology, engine config). Much richer than parsing the rulebook.
| Parameter | Type | Description |
|---|---|---|
game * | string | Game slug (e.g. chess, backgammon, draughts) |
playable | boolean | Filter to only engine-playable variants |
topology | string | Filter by board topology (grid, hex, track, graph, tableau) |
rules_get_diagram
Get board diagram SVG URL for a game variant. Returns the diagram path, topology, and rendering metadata.
| Parameter | Type | Description |
|---|---|---|
game * | string | Game family slug (e.g. chess, go, agon) |
variant | string | Variant slug (default: standard) |
rules_get_variant
Get rules for a specific game variant
| Parameter | Type | Description |
|---|---|---|
game * | string | Game slug |
variant * | string | Variant slug |
rules_search
Full-text search across all published rulebooks. Returns section-typed results with deep-link anchors.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query |
game | string | Limit to specific game slug |
limit | number | Max results (default 10) |
sectionType | string | Filter by section type (general, board, pieces, setup, movement, capture, winning, special, variants) |
rules_random
Get a random game suggestion from the library
| Parameter | Type | Description |
|---|---|---|
maxDuration | number | Maximum game duration in minutes |
players | number | Number of players available |
board_gallery_search
Search the board gallery (335 rendered board layouts across 34 game families)
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results (default 10) |
query | string | Search term (e.g. "8x8", "hex", "shogi") |
board_gallery_get
Get details of a specific board layout by ID
| Parameter | Type | Description |
|---|---|---|
board * | string | Board ID or name |
tile_gallery_search
Search hex tile sets by name, game, or terrain type
| Parameter | Type | Description |
|---|---|---|
query | string | Search term (omit to list all) |
tile_gallery_get
Get details of a specific tile set with all tile types
| Parameter | Type | Description |
|---|---|---|
set * | string | Tile set ID or name |
tile_gallery_stats
Get statistics about available tile sets
board_gallery_stats
Get statistics about the board gallery (total boards, families, topologies)
piece_gallery_search
Search the piece set gallery by name, style, or game type
| Parameter | Type | Description |
|---|---|---|
query * | string | Search term (e.g. "staunton", "pixel", "shogi") |
family | string | Filter by game family (chess, shogi, xiangqi, draughts, go, etc) |
limit | number | Max results (default 10) |
piece_gallery_get_set
Get full details and piece list for a specific set
| Parameter | Type | Description |
|---|---|---|
set * | string | Set name or ID |
piece_gallery_stats
Get statistics about the piece gallery (total sets, styles, authors, game families)
oracle_list_games
List all supported RPG systems with oracle tables and entity data availability
rpg_chargen
Generate a random character for an RPG system (D&D 5e, Pathfinder, Ironsworn, Cairn, Knave, etc)
| Parameter | Type | Description |
|---|---|---|
system * | string | RPG system (dnd-5e, pathfinder-1e, ironsworn, starforged, cairn, knave, maze-rats, dungeon-world) |
class | string | Class preference (omit for random) |
level | number | Character level (default: 1) |
oracle_roll
Roll on a random oracle table (Ironsworn, Starforged, Maze Rats, etc)
| Parameter | Type | Description |
|---|---|---|
system * | string | RPG system slug (ironsworn, starforged, maze-rats, cairn, knave, fate-core) |
table | string | Specific table name (omit for random) |
oracle_list_tables
List available oracle tables for a system
| Parameter | Type | Description |
|---|---|---|
system * | string | RPG system slug |
oracle_ask
Ask the oracle a yes/no question with likelihood modifier
| Parameter | Type | Description |
|---|---|---|
question * | string | Yes/no question |
likelihood | string | How likely is yes? (default: even) |
oracle_scene
Generate a scene using oracle tables. With a recipe, rolls each table in the recipe, resolves cross-references, and composes a narrative sentence. Without, picks random tables.
| Parameter | Type | Description |
|---|---|---|
recipe | string | Recipe ID (from oracle_list_recipes) — rolls each table in the recipe |
region | string | Region for Starforged region-aware recipes |
system | string | RPG system slug (default: ironsworn) |
type | string | Scene type for random mode (default: event) |
rpg_search_entities
Search RPG entities (spells, monsters, classes, items) across all systems
| Parameter | Type | Description |
|---|---|---|
query * | string | Search term |
category | string | Entity category (spell, monster, class, item) |
game | string | Alias for system |
limit | number | Max results (default 10) |
system | string | Limit to system (dnd-5e, pathfinder-1e, etc) |
rpg_get_entity
Get full details of a specific RPG entity by name
| Parameter | Type | Description |
|---|---|---|
name * | string | Entity name |
category | string | Category filter (spells, monsters, classes, etc) |
game | string | Alias for system |
system | string | System slug |
rpg_random_encounter
Generate a random encounter for a system and difficulty level
| Parameter | Type | Description |
|---|---|---|
difficulty | string | Encounter difficulty |
system | string | System slug (default: dnd-5e) |
type | string | Monster type filter (beast, undead, fiend, dragon, etc) |
rpg_browse_category
Browse entities by category with pagination
| Parameter | Type | Description |
|---|---|---|
category * | string | Category (spell, monster, class, item, feat, etc) |
system * | string | System slug |
game | string | Alias for system |
page | number | Page number (default 1) |
pageSize | number | Items per page (default 20) |
rpg_loot
Generate random loot/treasure for a system and tier
| Parameter | Type | Description |
|---|---|---|
count | number | Number of items (default 3) |
system | string | System slug (default: dnd-5e) |
tier | string | Loot tier (default: minor) |
oracle_list_recipes
List all predefined scene recipes — curated multi-table compositions that produce coherent narrative prompts
| Parameter | Type | Description |
|---|---|---|
game | string | Filter by game system (omit for all) |
oracle_interpret
Resolve oracle cross-references. Given a result like "Action + Theme", follows references and returns expanded results
| Parameter | Type | Description |
|---|---|---|
result * | string | Oracle result text to interpret |
game | string | Game system (default: starforged) |
source_table | string | Table ID the result came from |
oracle_table_view
View the complete contents of an oracle table — all entries with roll ranges
| Parameter | Type | Description |
|---|---|---|
table * | string | Table ID to view |
game | string | Game system (default: starforged) |
oracle_encounter
Generate a tabletop RPG encounter with CR-appropriate monsters, terrain, and loot (D&D 5e or Pathfinder 1e)
| Parameter | Type | Description |
|---|---|---|
difficulty | string | Encounter difficulty (default: medium) |
monster_type | string | Filter by type (undead, dragon, beast, etc) |
party_level | number | Average party level 1-20 (default: 5) |
party_size | number | Number of players 1-10 (default: 4) |
system | string | Game system (default: dnd-5e) |
terrain | string | Terrain type (omit for random) |
rpg_list_categories
List entity categories for an RPG system (spells, monsters, classes, equipment, etc)
| Parameter | Type | Description |
|---|---|---|
game | string | Game system slug (omit for all systems) |
system | string | Alias for game |
rpg_random
Get random entities from an RPG system for inspiration or encounter prep
| Parameter | Type | Description |
|---|---|---|
game * | string | Game system slug |
category | string | Category to draw from (omit for any) |
count | number | Number of random picks 1-10 (default: 1) |
system | string | Alias for game |
ti4_random_factions
Generate random faction assignments for Twilight Imperium 4th Edition
| Parameter | Type | Description |
|---|---|---|
players * | number | Number of players (3-8) |
expansions | array | Expansion filter (e.g. ["base","pok"]). Default: all |
ti4_draft_factions
Milty-style TI4 draft with pick pools per player
| Parameter | Type | Description |
|---|---|---|
choices | number | Factions per player to choose from (default: 3) |
expansions | array | Expansion filter (e.g. ["base","pok"]). Default: all |
players | number | Number of players (3-8, default: 6) |
ti4_list_factions
List all TI4 factions with colors, flags, and expansion info
| Parameter | Type | Description |
|---|---|---|
expansions | array | Filter by expansion (e.g. ["base","pok"]). Default: all |
ti4_draw_objectives
Draw random public objectives for TI4
| Parameter | Type | Description |
|---|---|---|
count | number | Number to draw (default: 5) |
expansions | array | Expansion filter |
stage | number | Stage 1 or 2 (default: both) |
ti4_draw_agendas
Draw random agenda cards for TI4 political phase
| Parameter | Type | Description |
|---|---|---|
count | number | Number to draw (default: 2) |
expansions | array | Expansion filter |
type | string | Filter by type |
nukes_setup_generator
Generate random territory/resource setup for a Nukes game
| Parameter | Type | Description |
|---|---|---|
players | number | Number of players (2-6, default: 2) |
game_nukes_combat
Resolve a Nukes combat encounter between units
| Parameter | Type | Description |
|---|---|---|
attacker * | string | Attacking unit type |
defender * | string | Defending unit type |
terrain | string | Terrain type (plains, forest, mountain, urban) |
colony_dice_odds
Calculate settlement dice probability for Colony/Catan-style resource numbers
| Parameter | Type | Description |
|---|---|---|
numbers * | string | Settlement numbers, comma-separated (e.g. "5,6,8,9") |
game_deck_create
Create, shuffle, and optionally draw/deal from a card deck
| Parameter | Type | Description |
|---|---|---|
draw | number | Number of cards to draw |
hands | number | Deal into N hands |
per_hand | number | Cards per hand (default: 5) |
type | string | Deck type (default: standard-52) |
game_deck_list_types
List all available deck types with metadata
game_deck_deal
Shuffle and deal a custom deck of arbitrary named cards
| Parameter | Type | Description |
|---|---|---|
cards * | array | Cards in the deck (name + optional quantity) |
draw | number | Draw N cards from the top instead of dealing hands |
hands | number | Deal into N hands (default: 1 = draw pile only) |
per_hand | number | Cards per hand (default: 5) |
game_score_tracker
Track scores for players in any game
| Parameter | Type | Description |
|---|---|---|
players * | array | Player names |
game | string | Game name |
scores | array | Scores (default: all 0) |
talisman_draw_characters
Draw random characters from the Talisman 4e (revised) base set for a character lottery
| Parameter | Type | Description |
|---|---|---|
count | number | Number of characters to draw (2-6, default: 4) |
talisman_draw_encounter
Draw a random encounter for a Talisman ring (outer, middle, inner, crown)
| Parameter | Type | Description |
|---|---|---|
ring | string | Ring to draw from (default: outer) |
jam_status
Get the current Mod Jam status (active jam, deadline, submissions)
jam_timer
Get time remaining in the current Mod Jam
jam_vote
Get voting status for the current Mod Jam
dice_roll
Roll dice using standard notation (e.g. 2d6+3, 4d8, d20). Supports comma-separated pools and keep-high/low (4d6kh3).
| Parameter | Type | Description |
|---|---|---|
count | number | Number of times to roll (default 1) |
expression | string | Alias for notation |
notation | string | Dice notation (e.g. 2d6+3, 4d6kh3, 3d8,1d12+2) |
coin_flip
Flip one or more coins, or pick from a list of choices
| Parameter | Type | Description |
|---|---|---|
choices | string | Comma-separated options to pick from (overrides coin flip) |
count | number | Number of coins (default 1) |
team_split
Randomly divide players into teams
| Parameter | Type | Description |
|---|---|---|
players * | array | Player names |
count | number | Number of teams (default 2) |
members | string | Comma-separated names (alternative to array) |
teams | number | Alias for count |
random_player_order
Randomise turn order for a list of players
| Parameter | Type | Description |
|---|---|---|
players * | array | Player names |
timer_suggest
Suggest time controls for a game based on player count and complexity
| Parameter | Type | Description |
|---|---|---|
game * | string | Game name |
players | number | Number of players |
game_jam_theme
Generate a random game jam theme combining mechanics and themes
| Parameter | Type | Description |
|---|---|---|
count | number | Number of themes to generate (default 3) |
dice_odds
Calculate probability of meeting a target with a dice expression. Supports keep-high/low (4d6kh3).
| Parameter | Type | Description |
|---|---|---|
expression * | string | Dice expression (e.g. 2d6, 4d6kh3) |
target * | number | Target number to meet or exceed |
comparison | string | Comparison (default >=) |