@karmaniverous/jeeves
    Preparing search index...

    Function resolveWorkspacePath

    • Resolve the agent workspace directory.

      Parameters

      • api: PluginApi

        The plugin API object provided by the gateway.

      • Optionalctx: PluginContext

        Hook or tool-factory context, when available.

      Returns string

      Absolute path to the workspace.

      In order (spec 5.8, #138):

      1. agents.defaults.workspace from the OpenClaw config, ~ expanded;
      2. ctx.workspaceDir from a hook or tool-factory context;
      3. OpenClaw's default workspace (see the state-dir rules). This is where OpenClaw itself puts the workspace when none is configured, so it is not logged as a misconfiguration.

      Never returns the plugin root (api.resolvePath resolves against it) and never throws.