Patch an OpenClaw config for plugin install.
The parsed OpenClaw config object (mutated in place).
The plugin identifier.
Install mode.
Install provenance record.
Array of log messages describing changes made.
Patch an OpenClaw config for plugin uninstall.
The parsed OpenClaw config object (mutated in place).
The plugin identifier.
Uninstall mode.
Array of log messages describing changes made.
Patch an OpenClaw config for plugin install or uninstall.
Remarks
Manages
plugins.entries.{pluginId},plugins.installs.{pluginId}, andtools.alsoAllow. Idempotent: adding twice produces no duplicates; removing when absent produces no errors.Param: config
The parsed OpenClaw config object (mutated in place).
Param: pluginId
The plugin identifier.
Param: mode
Whether to add or remove the plugin.
Param: installRecord
Install provenance record (required when mode is 'add').
Returns
Array of log messages describing changes made.