The OpenClaw plugin API passed to register(api).
Content and registration options.
Static text, or a (sync or async) provider evaluated per prompt build.
Optionalpriority?: numberHook priority (higher runs first; controls concatenation order).
OptionalregistrationId?: stringStable registration id.
OptionaltimeoutMs?: numberPer-handler timeout in ms.
true if registered; false if the host has no api.on.
Provider errors are logged (via api.logger when present) and yield no
injection for that turn; they never fail the prompt build. Registers no
timers or process handlers.
Register plugin rules that must always be in the agent's context.