export function buildLiveCronProbeMessage(params: {
agent: string;
argsJson: string;
attempt: number;
exactReply: string;
}): string { const family = normalizeLiveAgentFamily(params.agent); if (params.attempt === 0) { return ( "Use the OpenClaw MCP tool `openclaw-tools/cron` (server `openclaw-tools`, tool `cron`). "+
`Call it with JSON arguments ${params.argsJson}. ` + "Do the actual tool call; I will verify externally with the OpenClaw cron CLI. " +
`After the cron job is created, reply exactly: ${params.exactReply}`
);
} if (family === "claude") { return ( "Retry the OpenClaw MCP tool `openclaw-tools/cron` now. " +
`Use these exact JSON arguments: ${params.argsJson}. ` +
`If the cron job is created, reply exactly: ${params.exactReply}. ` + "If the tool call is cancelled, the job is not created, or you cannot confirm creation, " + "reply briefly saying that and ask me to retry. No markdown. " + "I will verify externally with the OpenClaw cron CLI."
);
} return ( "Your previous OpenClaw cron MCP tool call was cancelled before the job was created. " + "Retry the OpenClaw MCP tool `openclaw-tools/cron` now. " +
`Use these exact JSON arguments: ${params.argsJson}. ` +
`If the cron job is created, reply exactly: ${params.exactReply}. ` + "If the tool call is cancelled, the job is not created, or you cannot confirm creation, " + "reply briefly saying that and ask me to retry. No markdown. " + "I will verify externally with the OpenClaw cron CLI."
);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.