OptionalconfigOpenClaw configuration object.
Optionalagents?: { defaults?: { workspace?: string } }Agent configuration block.
Optionaldefaults?: { workspace?: string }Default agent settings.
Optionalworkspace?: stringAbsolute path to the workspace root directory.
Optionalplugins?: { entries?: Record<string, { config?: Record<string, unknown> }> }Installed plugin configuration.
OptionalresolveResolve a path relative to the OpenClaw workspace.
Register a tool with the OpenClaw gateway.
Tool descriptor.
Optionaloptions: ToolRegistrationOptionsRegistration options.
Canonical OpenClaw plugin API interface.
Remarks
This is the shape of the
apiobject passed to plugins by the OpenClaw gateway at registration time. Fields are optional where the gateway may not provide them in all versions.