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

    Interface FoundryItem

    Represents an item (weapon, armor, spell, etc.) in FoundryVTT

    Items represent equipment, spells, features, and other objects that can be owned by actors or exist independently in the game world.

    FoundryItem

    const sword: FoundryItem = {
    _id: 'item-456',
    name: 'Longsword +1',
    type: 'weapon',
    rarity: 'uncommon',
    damage: { parts: [['1d8+1', 'slashing']] },
    price: { value: 315, denomination: 'gp' }
    };
    interface FoundryItem {
        _id: string;
        name: string;
        type: string;
        img?: string;
        data?: any;
        description?: string;
        rarity?: string;
        price?: { value: number; denomination: string };
        weight?: number;
        quantity?: number;
        equipped?: boolean;
        identified?: boolean;
        damage?: { parts: [string, string][]; versatile?: string };
        range?: { value: number; long?: number; units: string };
        armor?: { value: number; type: string; dex?: number };
        level?: number;
        school?: string;
        components?: {
            vocal: boolean;
            somatic: boolean;
            material: boolean;
            value?: string;
        };
        duration?: { value: number; units: string };
        itemRange?: { value: number; units: string };
    }
    Index

    Properties

    _id: string
    name: string
    type: string
    img?: string
    data?: any
    description?: string
    rarity?: string
    price?: { value: number; denomination: string }
    weight?: number
    quantity?: number
    equipped?: boolean
    identified?: boolean
    damage?: { parts: [string, string][]; versatile?: string }
    range?: { value: number; long?: number; units: string }
    armor?: { value: number; type: string; dex?: number }
    level?: number
    school?: string
    components?: {
        vocal: boolean;
        somatic: boolean;
        material: boolean;
        value?: string;
    }
    duration?: { value: number; units: string }
    itemRange?: { value: number; units: string }