Register

Simulacrum: AI Campaign Copilot

An Add-on Module for Foundry Virtual Tabletop

Author: Daxiongmao87 Project: Source Foundry Versions 13 to 14 (Verified 13.331) Last Updated 1 month, 1 week ago

This package contains art, text, or software code produced using generative AI.

AI was leveraged during the development process for the following components:

  • Code: Logic and boilerplate generation.

  • Localization & Text: Drafting of content and translations.

  • Image: Creation of the avatar asset.

Simulacrum: AI Campaign Copilot

Install on FoundryVTT Discord Buy Me a Coffee

Foundry Version Forge Installs GitHub Downloads Latest Release License

An AI-powered Campaign Copilot for Foundry Virtual Tabletop that helps Game Masters manage their campaigns through natural language conversation.

 

Simulacrum for FoundryVTT: Campaign AI Copilot - Grunk Test

  

What is Simulacrum?

Simulacrum is an intelligent agent that lives inside your Foundry VTT sidebar. Unlike simple text generators, Simulacrum is a Campaign Copilot—it can understand your requests, plan multi-step operations, and directly interact with your game world.

Ask it to:

  • Create NPCs, items, journal entries, and other documents
  • Search and read existing campaign content
  • Update documents with new information
  • Execute complex multi-step tasks
  • Run custom macros and JavaScript automation

Features

Intelligent Document Management

Simulacrum understands Foundry VTT's document structure. Create an actor, and it knows about abilities, items, and system-specific fields. Ask for a magic sword, and it builds one with proper stats.

Extensible Tool System

The AI uses a set of tools to interact with your world:

  • Document Tools: Create, read, update, delete, search, and list documents
  • Compendium Tools: Lock/unlock packs, manage document ownership
  • Asset Search: Find images, audio, and other assets in your data
  • Schema Introspection: Understands your game system's data structures
  • Macro Execution: Run any macro in your world
  • JavaScript Execution: Advanced automation capabilities

Tool Permission Controls

Destructive operations (update, delete, macro/JS execution) require confirmation before executing. Configure per-tool permissions with Allow, Deny, Always Allow, or Blacklist options.

Task Tracking

For complex operations, Simulacrum can create and manage tasks, tracking progress across multiple steps and reporting when complete.

Multi-Provider Support

Connect to the AI provider of your choice:

  • OpenAI (GPT-4, etc.)
  • Google Gemini
  • Anthropic Claude
  • Any OpenAI-compatible API (local models, proxies, etc.)

GM-Only Access

Simulacrum is restricted to Game Masters only—players cannot access the AI interface or execute commands.

Installation

From Foundry VTT

  1. Open Foundry VTT and navigate to Add-on Modules
  2. Click Install Module
  3. Search for "Simulacrum"
  4. Click Install

Manual Installation

  1. Download the latest release from GitHub Releases
  2. Extract to your Data/modules/ directory
  3. Restart Foundry VTT

Configuration

  1. Enable the module in your world
  2. Open Module SettingsSimulacrum
  3. Configure your AI provider and API key
  4. Access Simulacrum from the sidebar tab

Required Settings

  • API Provider: Select your AI service
  • API Key: Your provider's API key
  • Model: The model to use (e.g., gpt-4o, gemini-2.5-flash, claude-3.5-sonnet)

Usage

Click the Simulacrum tab in the sidebar and start chatting. Examples:

"Create a goblin warrior named Grunk with 15 HP and a rusty shortsword"

"Find all journal entries about the Kingdom of Eldoria"

"Update the Dragon's Lair scene to add a treasure hoard in the corner"

"Create a task to build out the entire merchant guild, including 5 NPCs and their shop inventory"

Extending Simulacrum

Custom Macro Tools

You can create custom tools for Simulacrum by creating a standard Foundry VTT Macro. To expose a macro as a tool, simply add a const tool configuration object to your macro code:

// Valid Foundry VTT Macro code can go here...
const message = "Hello from the tool!";
ui.notifications.info(message);

// Tool Configuration - This tells Simulacrum how to use this macro
const tool = {
    name: "my_custom_tool",
    description: "A description of what this tool does",
    parameters: {
        type: "object",
        properties: {
            parameterName: {
                type: "string",
                description: "Description of the parameter"
            }
        },
        required: ["parameterName"]
    },
    enabled: true
};
 

Simulacrum automatically discovers any macro with this configuration and makes it available to the AI.

JavaScript Execution

For advanced users, Simulacrum can execute arbitrary JavaScript, enabling complex automation workflows.

Requirements

  • Foundry VTT v13.0.0 or higher
  • An AI provider API key with tool/function calling support:
    • OpenAI (GPT-4, GPT-4o, etc.)
    • Google Gemini (2.0 Flash, 2.5 Pro, etc.)
    • Anthropic Claude (3.5 Sonnet, etc.)
    • Any OpenAI-compatible API that supports function calling

Note: Your AI endpoint must support OpenAI-style tool/function calling. Simulacrum relies on native tool calling to execute actions reliably. Endpoints that only support text completion are not compatible.

Support

License

MIT License - see LICENSE for details.

Credits

Created by Daxiongmao87

 

Categories

Available Versions

  1. Version 1.0.8

    1 month, 1 week ago
    Foundry Version 13 - 14 (Verified 13.331) Manifest URL Read Notes
  2. Version 1.0.7

    1 month, 1 week ago
    Foundry Version 13 - 14 (Verified 13.331) Manifest URL Read Notes
  3. Version 1.0.6

    1 month, 1 week ago
    Foundry Version 13 - 14 (Verified 13.331) Manifest URL Read Notes
  4. Version 1.0.5

    1 month, 2 weeks ago
    Foundry Version 13 - 14 (Verified 13.331) Manifest URL Read Notes
  5. Version 1.0.4

    1 month, 2 weeks ago
    Foundry Version 13 - 14 (Verified 13.331) Manifest URL Read Notes
  6. Version 1.0.3

    1 month, 2 weeks ago
    Foundry Version 13 - 14 (Verified 13.331) Manifest URL Read Notes
  7. Version 1.0.2

    1 month, 2 weeks ago
    Foundry Version 13 - 14 (Verified 13.331) Manifest URL Read Notes
  8. Version 1.0.1

    1 month, 2 weeks ago
    Foundry Version 13 - 14 (Verified 13.331) Manifest URL Read Notes