OpenFairyGUI API
    Preparing search index...

    Interface OpenFairyGuiMcpToolPolicy

    Host policy runs after input validation, before the single Backend invocation.

    interface OpenFairyGuiMcpToolPolicy {
        failureSchema: ZodType<{ ok: false }>;
        beforeCall(
            input: Readonly<Record<string, unknown>>,
        ): { ok: false } | Promise<{ ok: false } | undefined> | undefined;
    }
    Index
    failureSchema: ZodType<{ ok: false }>

    Explicit Host-owned failure envelope, carried in structuredContent.backendResult.

    • Return a declared failure to stop, or undefined to call Backend with the original input.

      Parameters

      • input: Readonly<Record<string, unknown>>

      Returns { ok: false } | Promise<{ ok: false } | undefined> | undefined