@karmaniverous/jeeves
    Preparing search index...

    Interface PluginApi

    Canonical OpenClaw plugin API interface.

    This is the shape of the api object passed to plugins by the OpenClaw gateway at registration time. Fields are optional where the gateway may not provide them in all versions.

    interface PluginApi {
        config?: {
            agents?: { defaults?: { workspace?: string } };
            plugins?: {
                entries?: Record<string, { config?: Record<string, unknown> }>;
            };
        };
        resolvePath?: (input: string) => string;
        registerTool(tool: ToolDescriptor, options?: ToolRegistrationOptions): void;
    }
    Index

    Properties

    config?: {
        agents?: { defaults?: { workspace?: string } };
        plugins?: {
            entries?: Record<string, { config?: Record<string, unknown> }>;
        };
    }

    OpenClaw configuration object.

    Type Declaration

    • Optionalagents?: { defaults?: { workspace?: string } }

      Agent configuration block.

      • Optionaldefaults?: { workspace?: string }

        Default agent settings.

        • Optionalworkspace?: string

          Absolute path to the workspace root directory.

    • Optionalplugins?: { entries?: Record<string, { config?: Record<string, unknown> }> }

      Installed plugin configuration.

      • Optionalentries?: Record<string, { config?: Record<string, unknown> }>

        Plugin entries keyed by plugin ID.

    resolvePath?: (input: string) => string

    Resolve a path relative to the OpenClaw workspace.

    Present on newer OpenClaw builds; optional for backwards compatibility.

    Methods