FoundryVTT MCP Server Documentation - v0.9.2
    Preparing search index...

    Interface FoundryActor

    Represents an actor (character, NPC, or creature) in FoundryVTT

    Actors are the primary entities that represent characters, NPCs, monsters, and other creatures in the game world. This interface covers the common properties shared across different game systems.

    FoundryActor

    const hero: FoundryActor = {
    _id: 'actor-123',
    name: 'Aragorn',
    type: 'character',
    hp: { value: 45, max: 45 },
    ac: { value: 16 },
    level: 5
    };
    interface FoundryActor {
        _id: string;
        name: string;
        type: string;
        img?: string;
        data?: any;
        hp?: { value: number; max: number; temp?: number };
        ac?: { value: number };
        attributes?: Record<string, any>;
        abilities?: Record<string, { value: number; mod: number; save?: number }>;
        skills?: Record<
            string,
            { value: number; mod: number; proficient?: boolean },
        >;
        level?: number;
        experience?: { value: number; max: number };
        currency?: Record<string, number>;
        biography?: string;
        notes?: string;
    }
    Index

    Properties

    _id: string
    name: string
    type: string
    img?: string
    data?: any
    hp?: { value: number; max: number; temp?: number }
    ac?: { value: number }
    attributes?: Record<string, any>
    abilities?: Record<string, { value: number; mod: number; save?: number }>
    skills?: Record<string, { value: number; mod: number; proficient?: boolean }>
    level?: number
    experience?: { value: number; max: number }
    currency?: Record<string, number>
    biography?: string
    notes?: string