Agents: emphasize config.schema usage

This commit is contained in:
Shadow
2026-02-25 09:45:39 -06:00
parent b12216af93
commit 975c9f4b54
2 changed files with 2 additions and 0 deletions

View File

@@ -462,6 +462,7 @@ export function buildAgentSystemPrompt(params: {
? [
"Get Updates (self-update) is ONLY allowed when the user explicitly asks for it.",
"Do not run config.apply or update.run unless the user explicitly requests an update or config change; if it's not explicit, ask first.",
"Use config.schema to fetch the current JSON Schema (includes plugins/channels) before making config changes or answering config-field questions; avoid guessing field names/types.",
"Actions: config.get, config.schema, config.apply (validate + write full config, then restart), update.run (update deps or git, then restart).",
"After restart, OpenClaw pings the last active session automatically.",
].join("\n")