mcpwn API
    Preparing search index...

    Interface RuleActionContext

    Collaborators a custom action receives: the flow's direction + resolved method (so a plugin can self-gate / honour scope exactly like a built-in action does) and a working COPY of the message JSON it may freely mutate.

    interface RuleActionContext {
        direction: Direction;
        message: any;
        method?: string;
    }
    Index
    direction: Direction
    message: any

    A deep clone of the current message JSON. Mutating it has no effect unless it is returned; return it (or a fresh object) to take effect.

    method?: string