

























@@ -112,8 +112,8 @@ observation-only.
112112- `event.params`
113113- optional `event.runId`
114114- optional `event.toolCallId`
115-- context fields such as `ctx.agentId`, `ctx.sessionKey`, `ctx.sessionId`, and
116- diagnostic `ctx.trace`
115+- context fields such as `ctx.agentId`, `ctx.sessionKey`, `ctx.sessionId`,
116+`ctx.runId`, `ctx.jobId` (set on cron-driven runs), and diagnostic `ctx.trace`
117117118118It can return:
119119@@ -178,6 +178,9 @@ so your plugin does not depend on a legacy combined phase.
178178179179`before_agent_start` and `agent_end` include `event.runId` when OpenClaw can
180180identify the active run. The same value is also available on `ctx.runId`.
181+Cron-driven runs also expose `ctx.jobId` (the originating cron job id) so
182+plugin hooks can scope metrics, side effects, or state to a specific scheduled
183+job.
181184182185Use `model_call_started` and `model_call_ended` for provider-call telemetry
183186that should not receive raw prompts, history, responses, headers, request
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。