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

    Interface FoundryToken

    Represents a token on a scene in FoundryVTT

    Tokens are the visual representations of actors placed on scenes. They contain position, appearance, and gameplay-related information.

    FoundryToken

    const heroToken: FoundryToken = {
    _id: 'token-123',
    name: 'Aragorn',
    x: 1000,
    y: 1500,
    actorId: 'actor-123',
    disposition: 1 // friendly
    };
    interface FoundryToken {
        _id: string;
        name: string;
        img: string;
        x: number;
        y: number;
        width: number;
        height: number;
        scale: number;
        rotation: number;
        actorId?: string;
        actorLink: boolean;
        disposition: number;
        hidden: boolean;
        vision: boolean;
        dimSight: number;
        brightSight: number;
        bar1?: { attribute: string };
        bar2?: { attribute: string };
        effects?: string[];
    }
    Index

    Properties

    _id: string
    name: string
    img: string
    x: number
    y: number
    width: number
    height: number
    scale: number
    rotation: number
    actorId?: string
    actorLink: boolean
    disposition: number
    hidden: boolean
    vision: boolean
    dimSight: number
    brightSight: number
    bar1?: { attribute: string }
    bar2?: { attribute: string }
    effects?: string[]