@a1hvdy/cc-openclaw 0.18.1 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +14 -0
  2. package/dist/src/channels/telegram/completion-summary.js +2 -24
  3. package/dist/src/channels/telegram/completion-summary.js.map +1 -1
  4. package/dist/src/channels/telegram/event-reducer.js +70 -16
  5. package/dist/src/channels/telegram/event-reducer.js.map +1 -1
  6. package/dist/src/channels/telegram/live-card.d.ts +7 -90
  7. package/dist/src/channels/telegram/live-card.js +25 -286
  8. package/dist/src/channels/telegram/live-card.js.map +1 -1
  9. package/dist/src/channels/telegram/tool-tracker.d.ts +2 -16
  10. package/dist/src/channels/telegram/tool-tracker.js +18 -81
  11. package/dist/src/channels/telegram/tool-tracker.js.map +1 -1
  12. package/dist/src/config/loader.js +0 -2
  13. package/dist/src/config/loader.js.map +1 -1
  14. package/dist/src/config/schema.d.ts +1 -20
  15. package/dist/src/config/schema.js +1 -12
  16. package/dist/src/config/schema.js.map +1 -1
  17. package/dist/src/constants.d.ts +1 -13
  18. package/dist/src/constants.js +1 -13
  19. package/dist/src/constants.js.map +1 -1
  20. package/dist/src/engines/heartbeat-guard.d.ts +91 -0
  21. package/dist/src/engines/heartbeat-guard.js +120 -0
  22. package/dist/src/engines/heartbeat-guard.js.map +1 -0
  23. package/dist/src/engines/index.d.ts +2 -0
  24. package/dist/src/engines/index.js +3 -0
  25. package/dist/src/engines/index.js.map +1 -1
  26. package/dist/src/engines/persistent-session.d.ts +9 -0
  27. package/dist/src/engines/persistent-session.js +39 -0
  28. package/dist/src/engines/persistent-session.js.map +1 -1
  29. package/dist/src/engines/subprocess-pool.d.ts +78 -0
  30. package/dist/src/engines/subprocess-pool.js +200 -0
  31. package/dist/src/engines/subprocess-pool.js.map +1 -0
  32. package/dist/src/lib/config.d.ts +0 -6
  33. package/dist/src/lib/config.js +0 -81
  34. package/dist/src/lib/config.js.map +1 -1
  35. package/dist/src/lib/cost-rollup.d.ts +36 -0
  36. package/dist/src/lib/cost-rollup.js +125 -0
  37. package/dist/src/lib/cost-rollup.js.map +1 -0
  38. package/dist/src/lib/sysprompt-strip.d.ts +0 -14
  39. package/dist/src/lib/sysprompt-strip.js +2 -79
  40. package/dist/src/lib/sysprompt-strip.js.map +1 -1
  41. package/dist/src/lib/trajectory.d.ts +10 -1
  42. package/dist/src/lib/trajectory.js +37 -6
  43. package/dist/src/lib/trajectory.js.map +1 -1
  44. package/dist/src/lifecycle/safe-restart.d.ts +99 -0
  45. package/dist/src/lifecycle/safe-restart.js +132 -0
  46. package/dist/src/lifecycle/safe-restart.js.map +1 -0
  47. package/dist/src/observability/event-bus.d.ts +21 -0
  48. package/dist/src/observability/event-bus.js.map +1 -1
  49. package/dist/src/openai-compat/non-streaming-handler.js +58 -38
  50. package/dist/src/openai-compat/non-streaming-handler.js.map +1 -1
  51. package/dist/src/openai-compat/openai-compat.js +0 -23
  52. package/dist/src/openai-compat/openai-compat.js.map +1 -1
  53. package/dist/src/openai-compat/response-formatter.d.ts +1 -6
  54. package/dist/src/openai-compat/response-formatter.js +2 -9
  55. package/dist/src/openai-compat/response-formatter.js.map +1 -1
  56. package/dist/src/openai-compat/streaming-handler.js +120 -35
  57. package/dist/src/openai-compat/streaming-handler.js.map +1 -1
  58. package/dist/src/patches/cache-parity-registry.d.ts +83 -0
  59. package/dist/src/patches/cache-parity-registry.js +151 -1
  60. package/dist/src/patches/cache-parity-registry.js.map +1 -1
  61. package/dist/src/patches/sysprompt-strip.spec.d.ts +33 -0
  62. package/dist/src/patches/sysprompt-strip.spec.js +53 -0
  63. package/dist/src/patches/sysprompt-strip.spec.js.map +1 -0
  64. package/dist/src/session/session-manager.d.ts +4 -8
  65. package/dist/src/session/session-manager.js +76 -86
  66. package/dist/src/session/session-manager.js.map +1 -1
  67. package/dist/src/session-bootstrap/cwd-patch.js +0 -35
  68. package/dist/src/session-bootstrap/cwd-patch.js.map +1 -1
  69. package/mcp-tools.json +1 -1
  70. package/package.json +1 -1
  71. package/dist/src/lib/turn-trace.d.ts +0 -34
  72. package/dist/src/lib/turn-trace.js +0 -75
  73. package/dist/src/lib/turn-trace.js.map +0 -1
  74. package/dist/src/openai-compat/insight-format.d.ts +0 -36
  75. package/dist/src/openai-compat/insight-format.js +0 -140
  76. package/dist/src/openai-compat/insight-format.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"cwd-patch.js","sourceRoot":"","sources":["../../../src/session-bootstrap/cwd-patch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EACL,UAAU,EACV,SAAS,EACT,YAAY,EACZ,aAAa,EACb,UAAU,GACX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,wBAAwB,IAAI,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAC7H,OAAO,EAAE,kBAAkB,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,gCAAgC,GACjC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAm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ClE,UAAU,CAAC,YAAY,CAAC;aACrB,IAAI,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;aAClC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;YAChB,uBAAuB,CAAC,OAAO,CAAC,CAAC;YACjC,MAAM,eAAe,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC;YAC/F,eAAe,CAAC,KAAK,EAAE,CAAC;YACxB,kBAAkB,CAAC,OAAO,CAAC,CAAC;YAC5B,MAAM,eAAe,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;YAChF,eAAe,CAAC,KAAK,EAAE,CAAC;QAC1B,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,GAAU,EAAE,EAAE;YACpB,MAAM,CAAC,KAAK,CAAC,GAAG,GAAG,uBAAuB,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC,CAAC,iCAAiC;AACvC,CAAC"}
package/mcp-tools.json CHANGED
@@ -1 +1 @@
1
- [{"type":"function","function":{"name":"browser","description":"Control the browser via OpenClaw's browser control server (status/start/stop/profiles/tabs/open/snapshot/screenshot/actions). Browser choice: omit profile by default for the isolated OpenClaw-managed browser (`openclaw`). For the logged-in user browser, use profile=\"user\". A supported Chromium-based browser (v144+) must be running on the selected host or browser node. Use only when existing logins/cookies matter and the user is present. For profile=\"user\" or other existing-session profiles, omit timeoutMs on act:type, evaluate, hover, scrollIntoView, drag, select, and fill; that driver rejects per-call timeout overrides for those actions. When a node-hosted browser proxy is available, the tool may auto-route to it. Pin a node with node=<id|name> or target=\"node\". When using refs from snapshot (e.g. e12), keep the same tab: prefer passing targetId from the snapshot response into subsequent actions (act/click/type/etc). For tab operations, targetId also accepts tabId handles (t1) and labels from action=tabs. For multi-step browser work, login checks, stale refs, duplicate tabs, or Google Meet flows, use the bundled browser-automation skill when it is available. For stable, self-resolving refs across calls, use snapshot with refs=\"aria\" (Playwright aria-ref ids). Default refs=\"role\" are role+name-based. Use snapshot+act for UI automation. Avoid act:wait by default; use only in exceptional cases when no reliable UI state exists. target selects browser location (sandbox|host|node). Default: host. Host target allowed.","parameters":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["doctor","status","start","stop","profiles","tabs","open","focus","close","snapshot","screenshot","navigate","console","pdf","upload","dialog","act"]},"target":{"type":"string","enum":["sandbox","host","node"]},"node":{"type":"string"},"profile":{"type":"string"},"targetUrl":{"type":"string"},"url":{"type":"string"},"targetId":{"type":"string"},"label":{"type":"string"},"limit":{"type":"number"},"maxChars":{"type":"number"},"mode":{"type":"string","enum":["efficient"]},"snapshotFormat":{"type":"string","enum":["aria","ai"]},"refs":{"type":"string","enum":["role","aria"]},"interactive":{"type":"boolean"},"compact":{"type":"boolean"},"depth":{"type":"number"},"selector":{"type":"string"},"frame":{"type":"string"},"labels":{"type":"boolean"},"urls":{"type":"boolean"},"fullPage":{"type":"boolean"},"ref":{"type":"string"},"element":{"type":"string"},"type":{"type":"string","enum":["png","jpeg"]},"level":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"inputRef":{"type":"string"},"timeoutMs":{"type":"number"},"accept":{"type":"boolean"},"promptText":{"type":"string"},"kind":{"type":"string","enum":["click","clickCoords","type","press","hover","drag","select","fill","resize","wait","evaluate","close"]},"doubleClick":{"type":"boolean"},"button":{"type":"string"},"modifiers":{"type":"array","items":{"type":"string"}},"x":{"type":"number"},"y":{"type":"number"},"text":{"type":"string"},"submit":{"type":"boolean"},"slowly":{"type":"boolean"},"key":{"type":"string"},"delayMs":{"type":"number"},"startRef":{"type":"string"},"endRef":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"fields":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}},"width":{"type":"number"},"height":{"type":"number"},"timeMs":{"type":"number"},"textGone":{"type":"string"},"loadState":{"type":"string"},"fn":{"type":"string"},"request":{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["click","clickCoords","type","press","hover","drag","select","fill","resize","wait","evaluate","close"]},"targetId":{"type":"string"},"ref":{"type":"string"},"doubleClick":{"type":"boolean"},"button":{"type":"string"},"modifiers":{"type":"array","items":{"type":"string"}},"x":{"type":"number"},"y":{"type":"number"},"text":{"type":"string"},"submit":{"type":"boolean"},"slowly":{"type":"boolean"},"key":{"type":"string"},"delayMs":{"type":"number"},"startRef":{"type":"string"},"endRef":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"fields":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}},"width":{"type":"number"},"height":{"type":"number"},"timeMs":{"type":"number"},"selector":{"type":"string"},"url":{"type":"string"},"loadState":{"type":"string"},"textGone":{"type":"string"},"timeoutMs":{"type":"number"},"fn":{"type":"string"}}}}}}},{"type":"function","function":{"name":"cron","description":"Manage Gateway cron jobs (status/list/get/add/update/remove/run/runs) and send wake events. Use this for reminders, \"check back later\" requests, delayed follow-ups, and recurring tasks. Do not emulate scheduling with exec sleep or process polling.\n\nMain-session cron jobs enqueue system events for heartbeat handling. Isolated cron jobs create background task runs that appear in `openclaw tasks`.\n\nACTIONS:\n- status: Check cron scheduler status\n- list: List jobs (use includeDisabled:true to include disabled; agentId filters by agent, auto-filled from session)\n- get: Get one job by id (requires jobId)\n- add: Create job (requires job object, see schema below)\n- update: Modify job (requires jobId + patch object)\n- remove: Delete job (requires jobId)\n- run: Trigger job immediately (requires jobId)\n- runs: Get job run history (requires jobId)\n- wake: Send wake event (requires text, optional mode)\n\nJOB SCHEMA (for add action):\n{\n \"name\": \"string (optional)\",\n \"schedule\": { ... }, // Required: when to run\n \"payload\": { ... }, // Required: what to execute\n \"delivery\": { ... }, // Optional: announce summary (isolated/current/session:xxx only) or webhook POST\n \"sessionTarget\": \"main\" | \"isolated\" | \"current\" | \"session:<custom-id>\", // Optional, defaults based on context\n \"enabled\": true | false // Optional, default true\n}\n\nSESSION TARGET OPTIONS:\n- \"main\": Run in the main session (requires payload.kind=\"systemEvent\")\n- \"isolated\": Run in an ephemeral isolated session (requires payload.kind=\"agentTurn\")\n- \"current\": Bind to the current session where the cron is created (resolved at creation time)\n- \"session:<custom-id>\": Run in a persistent named session (e.g., \"session:project-alpha-daily\")\n\nDEFAULT BEHAVIOR (unchanged for backward compatibility):\n- payload.kind=\"systemEvent\" → defaults to \"main\"\n- payload.kind=\"agentTurn\" → defaults to \"isolated\"\nTo use current session binding, explicitly set sessionTarget=\"current\".\n\nSCHEDULE TYPES (schedule.kind):\n- \"at\": One-shot at absolute time\n { \"kind\": \"at\", \"at\": \"<ISO-8601 timestamp>\" }\n- \"every\": Recurring interval\n { \"kind\": \"every\", \"everyMs\": <interval-ms>, \"anchorMs\": <optional-start-ms> }\n- \"cron\": Cron expression evaluated in the supplied timezone, or the Gateway host local timezone when tz is omitted\n { \"kind\": \"cron\", \"expr\": \"<cron-expression>\", \"tz\": \"<optional-IANA-timezone>\" }\n Write expr in the selected timezone's local wall-clock time; do not convert the requested local time to UTC first.\n If tz is omitted, do not assume UTC; the Gateway host local timezone is used.\n Example: \"Remind me every day at 6pm Shanghai time\" -> { \"kind\": \"cron\", \"expr\": \"0 18 * * *\", \"tz\": \"Asia/Shanghai\" }\n\nFor schedule.kind=\"at\", ISO timestamps without an explicit timezone are treated as UTC.\n\nPAYLOAD TYPES (payload.kind):\n- \"systemEvent\": Injects text as system event into session\n { \"kind\": \"systemEvent\", \"text\": \"<message>\" }\n- \"agentTurn\": Runs agent with message (isolated sessions only)\n { \"kind\": \"agentTurn\", \"message\": \"<prompt>\", \"model\": \"<optional>\", \"thinking\": \"<optional>\", \"timeoutSeconds\": <optional, 0 means no timeout> }\n\nDELIVERY (top-level):\n { \"mode\": \"none|announce|webhook\", \"channel\": \"<optional>\", \"to\": \"<optional>\", \"threadId\": \"<optional>\", \"bestEffort\": <optional-bool> }\n - Default for isolated agentTurn jobs (when delivery omitted): \"announce\"\n - announce: send to chat channel (optional channel/to target)\n - threadId: chat thread/topic id for channels that support threaded delivery\n - webhook: send finished-run event as HTTP POST to delivery.to (URL required)\n - If the task needs to send to a specific chat/recipient, set announce delivery.channel/to; do not call messaging tools inside the run.\n\nCRITICAL CONSTRAINTS:\n- sessionTarget=\"main\" REQUIRES payload.kind=\"systemEvent\"\n- sessionTarget=\"isolated\" | \"current\" | \"session:xxx\" REQUIRES payload.kind=\"agentTurn\"\n- For webhook callbacks, use delivery.mode=\"webhook\" with delivery.to set to a URL.\nDefault: prefer isolated agentTurn jobs unless the user explicitly wants current-session binding.\n\nRESTRICTED CRON RUNS:\n- Some isolated cron runs receive a narrow cron grant for self-cleanup. In that mode, read-only status and list are for self-introspection only, get/runs are allowed for the current job only, and mutation actions remain limited to removing the current cron job.\n\nWAKE MODES (for wake action):\n- \"next-heartbeat\" (default): Wake on next heartbeat\n- \"now\": Wake immediately\n\nUse jobId as the canonical identifier; id is accepted for compatibility. Use contextMessages (0-10) to add previous messages as context to the job text.","parameters":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["status","list","get","add","update","remove","run","runs","wake"]},"gatewayUrl":{"type":"string"},"gatewayToken":{"type":"string"},"timeoutMs":{"type":"number"},"includeDisabled":{"type":"boolean"},"job":{"type":"object","properties":{"name":{"type":"string","description":"Job name"},"schedule":{"type":"object","properties":{"kind":{"type":"string","enum":["at","every","cron"],"description":"Schedule type"},"at":{"type":"string","description":"ISO-8601 timestamp (kind=at)"},"everyMs":{"type":"number","description":"Interval in milliseconds (kind=every)"},"anchorMs":{"type":"number","description":"Optional start anchor in milliseconds (kind=every)"},"expr":{"type":"string","description":"Cron expression (kind=cron) written in the supplied tz's local wall-clock time, or the Gateway host local timezone when tz is omitted; do not convert the requested local time to UTC first. Example: 6pm Shanghai daily is \"0 18 * * *\" with tz \"Asia/Shanghai\"."},"tz":{"type":"string","description":"IANA timezone for interpreting cron wall-clock fields (kind=cron), e.g. \"Asia/Shanghai\"; if omitted, cron uses the Gateway host local timezone."},"staggerMs":{"type":"number","description":"Random jitter in ms (kind=cron)"}},"additionalProperties":true},"sessionTarget":{"type":"string","description":"Session target: \"main\", \"isolated\", \"current\", or \"session:<id>\""},"wakeMode":{"type":"string","enum":["now","next-heartbeat"],"description":"When to wake the session"},"payload":{"type":"object","properties":{"kind":{"type":"string","enum":["systemEvent","agentTurn"],"description":"Payload type"},"text":{"type":"string","description":"Message text (kind=systemEvent)"},"message":{"type":"string","description":"Agent prompt (kind=agentTurn)"},"model":{"type":"string","description":"Model override"},"thinking":{"type":"string","description":"Thinking level override"},"timeoutSeconds":{"type":"number"},"lightContext":{"type":"boolean"},"allowUnsafeExternalContent":{"type":"boolean"},"fallbacks":{"type":"array","items":{"type":"string"},"description":"Fallback model ids"},"toolsAllow":{"type":"array","items":{"type":"string"},"description":"Allowed tool ids"}},"additionalProperties":true},"delivery":{"type":"object","properties":{"mode":{"type":"string","enum":["none","announce","webhook"],"description":"Delivery mode"},"channel":{"type":"string","description":"Delivery channel"},"to":{"type":"string","description":"Delivery target"},"threadId":{"anyOf":[{"type":"string"},{"type":"number"}],"description":"Thread/topic id for channels that support threaded delivery"},"bestEffort":{"type":"boolean"},"accountId":{"type":"string","description":"Account target for delivery"},"failureDestination":{"type":"object","properties":{"channel":{"type":"string"},"to":{"type":"string"},"accountId":{"type":"string"},"mode":{"type":"string","enum":["announce","webhook"]}},"additionalProperties":true}},"additionalProperties":true},"agentId":{"type":"string","description":"Agent id, or null to keep it unset"},"description":{"type":"string","description":"Human-readable description"},"enabled":{"type":"boolean"},"deleteAfterRun":{"type":"boolean","description":"Delete after first execution"},"sessionKey":{"type":"string","description":"Explicit session key, or null to clear it"},"failureAlert":{"type":"object","properties":{"after":{"type":"number","description":"Failures before alerting"},"channel":{"type":"string","description":"Alert channel"},"to":{"type":"string","description":"Alert target"},"cooldownMs":{"type":"number","description":"Cooldown between alerts in ms"},"includeSkipped":{"type":"boolean","description":"Count consecutive skipped runs toward alerting"},"mode":{"type":"string","enum":["announce","webhook"]},"accountId":{"type":"string"}},"additionalProperties":true,"description":"Failure alert config object, or the boolean value false to disable alerts for this job"}},"additionalProperties":true},"jobId":{"type":"string"},"id":{"type":"string"},"patch":{"type":"object","properties":{"name":{"type":"string","description":"Job name"},"schedule":{"type":"object","properties":{"kind":{"type":"string","enum":["at","every","cron"],"description":"Schedule type"},"at":{"type":"string","description":"ISO-8601 timestamp (kind=at)"},"everyMs":{"type":"number","description":"Interval in milliseconds (kind=every)"},"anchorMs":{"type":"number","description":"Optional start anchor in milliseconds (kind=every)"},"expr":{"type":"string","description":"Cron expression (kind=cron) written in the supplied tz's local wall-clock time, or the Gateway host local timezone when tz is omitted; do not convert the requested local time to UTC first. Example: 6pm Shanghai daily is \"0 18 * * *\" with tz \"Asia/Shanghai\"."},"tz":{"type":"string","description":"IANA timezone for interpreting cron wall-clock fields (kind=cron), e.g. \"Asia/Shanghai\"; if omitted, cron uses the Gateway host local timezone."},"staggerMs":{"type":"number","description":"Random jitter in ms (kind=cron)"}},"additionalProperties":true},"sessionTarget":{"type":"string","description":"Session target"},"wakeMode":{"type":"string","enum":["now","next-heartbeat"]},"payload":{"type":"object","properties":{"kind":{"type":"string","enum":["systemEvent","agentTurn"],"description":"Payload type"},"text":{"type":"string","description":"Message text (kind=systemEvent)"},"message":{"type":"string","description":"Agent prompt (kind=agentTurn)"},"model":{"type":"string","description":"Model override"},"thinking":{"type":"string","description":"Thinking level override"},"timeoutSeconds":{"type":"number"},"lightContext":{"type":"boolean"},"allowUnsafeExternalContent":{"type":"boolean"},"fallbacks":{"type":"array","items":{"type":"string"},"description":"Fallback model ids"},"toolsAllow":{"type":"array","items":{"type":"string"},"description":"Allowed tool ids, or null to clear"}},"additionalProperties":true},"delivery":{"type":"object","properties":{"mode":{"type":"string","enum":["none","announce","webhook"],"description":"Delivery mode"},"channel":{"type":"string","description":"Delivery channel"},"to":{"type":"string","description":"Delivery target"},"threadId":{"anyOf":[{"type":"string"},{"type":"number"}],"description":"Thread/topic id for channels that support threaded delivery"},"bestEffort":{"type":"boolean"},"accountId":{"type":"string","description":"Account target for delivery"},"failureDestination":{"type":"object","properties":{"channel":{"type":"string"},"to":{"type":"string"},"accountId":{"type":"string"},"mode":{"type":"string","enum":["announce","webhook"]}},"additionalProperties":true}},"additionalProperties":true},"description":{"type":"string"},"enabled":{"type":"boolean"},"deleteAfterRun":{"type":"boolean"},"agentId":{"type":"string","description":"Agent id, or null to clear it"},"sessionKey":{"type":"string","description":"Explicit session key, or null to clear it"},"failureAlert":{"type":"object","properties":{"after":{"type":"number","description":"Failures before alerting"},"channel":{"type":"string","description":"Alert channel"},"to":{"type":"string","description":"Alert target"},"cooldownMs":{"type":"number","description":"Cooldown between alerts in ms"},"includeSkipped":{"type":"boolean","description":"Count consecutive skipped runs toward alerting"},"mode":{"type":"string","enum":["announce","webhook"]},"accountId":{"type":"string"}},"additionalProperties":true,"description":"Failure alert config object, or the boolean value false to disable alerts for this job"}},"additionalProperties":true},"text":{"type":"string"},"mode":{"type":"string","enum":["now","next-heartbeat"]},"runMode":{"type":"string","enum":["due","force"]},"contextMessages":{"type":"number","minimum":0,"maximum":10},"agentId":{"type":"string","description":"Filter by agent id (list action)"}},"additionalProperties":true}}},{"type":"function","function":{"name":"edit","description":"Edit a single file using exact text replacement. Every edits[].oldText must match a unique, non-overlapping region of the original file. If two changes affect the same block or nearby lines, merge them into one edit instead of emitting overlapping edits. Do not include large unchanged regions just to connect distant changes.","parameters":{"type":"object","required":["path","edits"],"properties":{"path":{"type":"string","description":"Path to the file to edit (relative or absolute)"},"edits":{"type":"array","items":{"type":"object","required":["oldText","newText"],"properties":{"oldText":{"type":"string","description":"Exact text for one targeted replacement. It must be unique in the original file and must not overlap with any other edits[].oldText in the same call."},"newText":{"type":"string","description":"Replacement text for this targeted edit."}},"additionalProperties":false},"description":"One or more targeted replacements. Each edit is matched against the original file, not incrementally. Do not include overlapping or nested edits. If two changes touch the same block or nearby lines, merge them into one edit instead."}},"additionalProperties":false}}},{"type":"function","function":{"name":"exec","description":"Execute shell commands with background continuation for work that starts now. Use yieldMs/background to continue later via process tool. For long-running work started now, rely on automatic completion wake when it is enabled and the command emits output or fails; otherwise use process to confirm completion. Use process whenever you need logs, status, input, or intervention. Do not use exec sleep or delay loops for reminders or deferred follow-ups; use cron instead. Use pty=true for TTY-required commands (terminal UIs, coding agents).","parameters":{"type":"object","required":["command"],"properties":{"command":{"type":"string","description":"Shell command to execute"},"workdir":{"type":"string","description":"Working directory (defaults to cwd)"},"env":{"type":"object","patternProperties":{"^.*$":{"type":"string"}}},"yieldMs":{"type":"number","description":"Milliseconds to wait before backgrounding (default 10000)"},"background":{"type":"boolean","description":"Run in background immediately"},"timeout":{"type":"number","description":"Timeout in seconds (optional, kills process on expiry)"},"pty":{"type":"boolean","description":"Run in a pseudo-terminal (PTY) when available (TTY-required CLIs, coding agents)"},"elevated":{"type":"boolean","description":"Run on the host with elevated permissions (if allowed)"},"host":{"type":"string","enum":["auto","sandbox","gateway","node"],"description":"Exec host/target (auto|sandbox|gateway|node)."},"security":{"type":"string","description":"Ignored for normal calls; exec security is set by tools.exec.security and host approvals."},"ask":{"type":"string","description":"Exec ask mode (off|on-miss|always)."},"node":{"type":"string","description":"Node id/name for host=node."}}}}},{"type":"function","function":{"name":"image","description":"Analyze one or more images with a vision model. Use image for a single path/URL, or images for multiple (up to 20). Only use this tool when images were NOT already provided in the user's message. Images mentioned in the prompt are automatically visible to you.","parameters":{"type":"object","properties":{"prompt":{"type":"string"},"image":{"type":"string","description":"Single image path or URL."},"images":{"type":"array","items":{"type":"string"},"description":"Multiple image paths or URLs (up to maxImages, default 20)."},"model":{"type":"string"},"maxBytesMb":{"type":"number"},"maxImages":{"type":"number"}}}}},{"type":"function","function":{"name":"image_generate","description":"Generate new images or edit reference images with the configured or inferred image-generation model. For transparent backgrounds, use outputFormat=\"png\" or \"webp\" and background=\"transparent\"; OpenAI also accepts openai.background and OpenClaw routes the default OpenAI image model to gpt-image-1.5 for that mode. Set agents.defaults.imageGenerationModel.primary to pick a provider/model. Providers declare their own auth/readiness; use action=\"list\" to inspect registered providers, models, readiness, and auth hints. Generated images are delivered automatically from the tool result as MEDIA paths.","parameters":{"type":"object","properties":{"action":{"type":"string","description":"Optional action: \"generate\" (default) or \"list\" to inspect available providers/models."},"prompt":{"type":"string","description":"Image generation prompt."},"image":{"type":"string","description":"Optional reference image path or URL for edit mode."},"images":{"type":"array","items":{"type":"string"},"description":"Optional reference images for edit mode (up to 5)."},"model":{"type":"string","description":"Optional provider/model override, e.g. openai/gpt-image-2; use openai/gpt-image-1.5 for transparent OpenAI backgrounds."},"filename":{"type":"string","description":"Optional output filename hint. OpenClaw preserves the basename and saves under its managed media directory."},"size":{"type":"string","description":"Optional size hint like 1024x1024, 1536x1024, 1024x1536, 2048x2048, or 3840x2160."},"aspectRatio":{"type":"string","description":"Optional aspect ratio hint: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, or 21:9."},"resolution":{"type":"string","description":"Optional resolution hint: 1K, 2K, or 4K. Useful for Google edit/generation flows."},"quality":{"type":"string","enum":["low","medium","high","auto"],"description":"Optional quality hint: low, medium, high, or auto when the provider supports it."},"outputFormat":{"type":"string","enum":["png","jpeg","webp"],"description":"Optional output format hint: png, jpeg, or webp when the provider supports it."},"background":{"type":"string","enum":["transparent","opaque","auto"],"description":"Optional background hint: transparent, opaque, or auto when the provider supports it. For transparent output use outputFormat png or webp."},"openai":{"type":"object","properties":{"background":{"type":"string","enum":["transparent","opaque","auto"],"description":"OpenAI-only background hint: transparent, opaque, or auto. For transparent output use outputFormat png or webp; OpenClaw routes the default OpenAI image model to gpt-image-1.5 for this mode."},"moderation":{"type":"string","enum":["low","auto"],"description":"OpenAI-only moderation hint: low or auto."},"outputCompression":{"type":"number","description":"OpenAI-only compression level for jpeg/webp outputFormat, 0-100.","minimum":0,"maximum":100},"user":{"type":"string","description":"OpenAI-only stable end-user identifier for abuse monitoring."}}},"count":{"type":"number","description":"Optional number of images to request (1-4).","minimum":1,"maximum":4},"timeoutMs":{"type":"number","description":"Optional provider request timeout in milliseconds.","minimum":1}}}}},{"type":"function","function":{"name":"lcm_describe","description":"Look up metadata and content for an LCM item by ID. Use this to inspect summaries (sum_xxx) or stored files (file_xxx) from compacted conversation history. Returns summary content, lineage, token counts, and file exploration results.","parameters":{"type":"object","required":["id"],"properties":{"id":{"description":"The LCM ID to look up. Use sum_xxx for summaries, file_xxx for files.","type":"string"},"conversationId":{"description":"Conversation ID to scope describe lookups to. If omitted, uses the current session conversation.","type":"number"},"allConversations":{"description":"Set true to explicitly allow lookups across all conversations. Ignored when conversationId is provided.","type":"boolean"},"tokenCap":{"description":"Optional budget cap used for subtree manifest budget-fit annotations.","minimum":1,"type":"number"}}}}},{"type":"function","function":{"name":"lcm_expand","description":"Expand compacted conversation summaries from LCM (Lossless Context Management). Traverses the summary DAG to retrieve children and source messages. Use this to drill into previously-compacted context when you need detail that was summarised away. Provide either summaryIds (direct expansion) or query (grep-first, then expand top matches). Returns a compact text payload plus cited IDs in tool output for follow-up.","parameters":{"type":"object","properties":{"summaryIds":{"description":"Summary IDs to expand (sum_xxx format). Required if query is not provided.","type":"array","items":{"type":"string"}},"query":{"description":"Text query to grep for matching summaries before expanding. If provided, summaryIds is ignored and the top grep results are expanded.","type":"string"},"maxDepth":{"description":"Max traversal depth per summary (default: 3).","minimum":1,"type":"number"},"tokenCap":{"description":"Max tokens across the entire expansion result.","minimum":1,"type":"number"},"includeMessages":{"description":"Whether to include raw source messages at leaf level (default: false).","type":"boolean"},"conversationId":{"description":"Conversation ID to scope the expansion to. If omitted, uses the current session's conversation.","type":"number"},"allConversations":{"description":"Set true to explicitly allow cross-conversation expansion. Ignored when conversationId is provided.","type":"boolean"}}}}},{"type":"function","function":{"name":"lcm_expand_query","description":"Answer a focused natural-language question using delegated LCM expansion. Find candidate summaries (by IDs or a short FTS5 query that follows the same full-text rules as lcm_grep), expand them in a delegated sub-agent, and return a compact prompt-focused answer. Tool output includes cited summary IDs for follow-up.","parameters":{"type":"object","required":["prompt"],"properties":{"summaryIds":{"description":"Summary IDs to expand (sum_xxx). Required when query is not provided.","type":"array","items":{"type":"string"}},"query":{"description":"FTS5 query used to find summaries via the same full-text search path as lcm_grep before expansion. Use 1-3 distinctive terms or a quoted phrase; FTS5 defaults to AND matching, so extra terms make matches stricter. Required when summaryIds is not provided.","type":"string"},"prompt":{"description":"Natural-language question or task to answer using expanded context. Put the answer request here, not in query.","type":"string"},"conversationId":{"description":"Conversation ID to scope expansion to. If omitted, uses the current session conversation.","type":"number"},"allConversations":{"description":"Set true to explicitly allow cross-conversation lookup. Ignored when conversationId is provided.","type":"boolean"},"maxTokens":{"description":"Maximum answer tokens to target (default: 2000).","minimum":1,"type":"number"},"tokenCap":{"description":"Expansion retrieval token budget across all delegated lcm_expand calls for this query.","minimum":1,"type":"number"}}}}},{"type":"function","function":{"name":"lcm_grep","description":"Search compacted conversation history using regex or full-text search. Searches across messages and/or summaries stored by LCM. Use this to find specific content that may have been compacted away from active context. In full_text mode, queries use FTS5 AND semantics by default, so keep them short and focused; quoted phrases stay intact and optional sort modes can prioritize relevance for older topics. Returns matching snippets with their summary/message IDs for follow-up with lcm_expand or lcm_describe.","parameters":{"type":"object","required":["pattern"],"properties":{"pattern":{"description":"Search pattern. Interpreted as regex when mode is \"regex\", or as an FTS5 text query when mode is \"full_text\". In full_text mode, FTS5 defaults to AND matching, so prefer 1-3 distinctive terms or one quoted multi-word phrase instead of padding with synonyms or extra keywords.","type":"string"},"mode":{"description":"Search mode: \"regex\" for regular expression matching, \"full_text\" for text search. Default: \"regex\".","enum":["regex","full_text"],"type":"string"},"scope":{"description":"What to search: \"messages\" for raw messages, \"summaries\" for compacted summaries, \"both\" for all. Default: \"both\".","enum":["messages","summaries","both"],"type":"string"},"conversationId":{"description":"Conversation ID to search within. If omitted, defaults to the current session conversation.","type":"number"},"allConversations":{"description":"Set true to explicitly search across all conversations. Ignored when conversationId is provided.","type":"boolean"},"since":{"description":"Only return matches created at or after this ISO timestamp.","type":"string"},"before":{"description":"Only return matches created before this ISO timestamp.","type":"string"},"limit":{"description":"Maximum number of results to return (default: 50).","minimum":1,"maximum":200,"type":"number"},"sort":{"description":"Sort order: \"recency\" (newest first, default), \"relevance\" (best FTS5 match first, full_text mode only), or \"hybrid\" (full_text mode only; balances relevance with recency). Applied before limit is enforced.","enum":["recency","relevance","hybrid"],"type":"string"}}}}},{"type":"function","function":{"name":"memory_get","description":"Safe exact excerpt read from MEMORY.md or memory/*.md. Defaults to a bounded excerpt when lines are omitted, includes truncation/continuation info when more content exists, and `corpus=wiki` reads from registered compiled-wiki supplements.","parameters":{"type":"object","properties":{"path":{"type":"string"},"from":{"type":"number"},"lines":{"type":"number"},"corpus":{"type":"string","enum":["memory","wiki","all"]}},"required":["path"],"additionalProperties":false}}},{"type":"function","function":{"name":"memory_search","description":"Mandatory recall step: semantically search MEMORY.md + memory/*.md (and optional session transcripts) before answering questions about prior work, decisions, dates, people, preferences, or todos. Optional `corpus=wiki` or `corpus=all` also searches registered compiled-wiki supplements. `corpus=memory` restricts hits to indexed memory files (excludes session transcript chunks from ranking). `corpus=sessions` restricts hits to indexed session transcripts (same visibility rules as session history tools). If response has disabled=true, memory retrieval is unavailable and should be surfaced to the user.","parameters":{"type":"object","properties":{"query":{"type":"string"},"maxResults":{"type":"number"},"minScore":{"type":"number"},"corpus":{"type":"string","enum":["memory","wiki","all","sessions"]}},"required":["query"],"additionalProperties":false}}},{"type":"function","function":{"name":"music_generate","description":"Generate music using configured providers. Generated tracks are saved under OpenClaw-managed media storage and delivered automatically as attachments.","parameters":{"type":"object","properties":{"action":{"type":"string","description":"Optional action: \"generate\" (default), \"status\" to inspect the active session task, or \"list\" to inspect available providers/models."},"prompt":{"type":"string","description":"Music generation prompt."},"lyrics":{"type":"string","description":"Optional lyrics to guide sung output when the provider supports it."},"instrumental":{"type":"boolean","description":"Optional toggle for instrumental-only output when the provider supports it."},"image":{"type":"string","description":"Optional single reference image path or URL."},"images":{"type":"array","items":{"type":"string"},"description":"Optional reference images (up to 10)."},"model":{"type":"string","description":"Optional provider/model override, e.g. google/lyria-3-pro-preview."},"durationSeconds":{"type":"number","description":"Optional target duration in seconds when the provider supports duration hints.","minimum":1},"timeoutMs":{"type":"number","description":"Optional provider request timeout in milliseconds. Values below 10000ms are raised to 10000ms.","minimum":1},"format":{"type":"string","description":"Optional output format hint: \"mp3\" or \"wav\" when the provider supports it."},"filename":{"type":"string","description":"Optional output filename hint. OpenClaw preserves the basename and saves under its managed media directory."}}}}},{"type":"function","function":{"name":"process","description":"Manage running exec sessions for commands already started: list, poll, log, write, send-keys, submit, paste, kill. Use poll/log when you need status, logs, quiet-success confirmation, or completion confirmation when automatic completion wake is unavailable. Use poll/log also for input-wait hints. Use write/send-keys/submit/paste/kill for input or intervention. Do not use process polling to emulate timers or reminders; use cron for scheduled follow-ups.","parameters":{"type":"object","required":["action"],"properties":{"action":{"type":"string","description":"Process action (list|poll|log|write|send-keys|submit|paste|kill|clear|remove)"},"sessionId":{"type":"string","description":"Session id for actions other than list"},"data":{"type":"string","description":"Data to write for write"},"keys":{"type":"array","items":{"type":"string"},"description":"Key tokens to send for send-keys"},"hex":{"type":"array","items":{"type":"string"},"description":"Hex bytes to send for send-keys"},"literal":{"type":"string","description":"Literal string for send-keys"},"text":{"type":"string","description":"Text to paste for paste"},"bracketed":{"type":"boolean","description":"Wrap paste in bracketed mode"},"eof":{"type":"boolean","description":"Close stdin after write"},"offset":{"type":"number","description":"Log offset"},"limit":{"type":"number","description":"Log length"},"timeout":{"type":"number","description":"For poll: wait up to this many milliseconds before returning; max 30000 ms, higher values are clamped to 30000","minimum":0}}}}},{"type":"function","function":{"name":"read","description":"Read the contents of a file. Supports text files and images (jpg, png, gif, webp). Images are sent as attachments. For text files, output is truncated to 2000 lines or 50KB (whichever is hit first). Use offset/limit for large files. When you need the full file, continue with offset until complete.","parameters":{"type":"object","required":["path"],"properties":{"path":{"type":"string","description":"Path to the file to read (relative or absolute)"},"offset":{"type":"number","description":"Line number to start reading from (1-indexed)"},"limit":{"type":"number","description":"Maximum number of lines to read"}}}}},{"type":"function","function":{"name":"session_status","description":"Show a /status-equivalent session status card for the current or another visible session, including usage, time, cost when available, and linked background task context. Use `sessionKey=\"current\"` for the current session; do not use UI/client labels such as `openclaw-tui` as session keys. Optional `model` sets a per-session model override; `model=default` resets overrides. Use this for questions like what model is active or how a session is configured.","parameters":{"type":"object","properties":{"sessionKey":{"type":"string"},"model":{"type":"string"}}}}},{"type":"function","function":{"name":"sessions_history","description":"Fetch sanitized message history for a visible session. Supports limits and optional tool messages; use this to inspect another session before replying, debugging, or resuming work.","parameters":{"type":"object","required":["sessionKey"],"properties":{"sessionKey":{"type":"string"},"limit":{"type":"number","minimum":1},"includeTools":{"type":"boolean"}}}}},{"type":"function","function":{"name":"sessions_list","description":"List visible sessions with optional filters for kind, label, agentId, search, recent activity, derived titles, and last-message previews. Use this to discover a target session before calling sessions_history or sessions_send.","parameters":{"type":"object","properties":{"kinds":{"type":"array","items":{"type":"string"}},"limit":{"type":"number","minimum":1},"activeMinutes":{"type":"number","minimum":1},"messageLimit":{"type":"number","minimum":0},"label":{"type":"string","minLength":1},"agentId":{"type":"string","minLength":1,"maxLength":64},"search":{"type":"string","minLength":1},"includeDerivedTitles":{"type":"boolean"},"includeLastMessage":{"type":"boolean"}}}}},{"type":"function","function":{"name":"sessions_send","description":"Send a message into another visible session by sessionKey or label. Thread-scoped chat sessions are rejected; target the parent channel session for inter-agent coordination. Use this to delegate follow-up work to an existing session; waits for the target run and returns the updated assistant reply when available.","parameters":{"type":"object","required":["message"],"properties":{"sessionKey":{"type":"string"},"label":{"type":"string","minLength":1,"maxLength":512},"agentId":{"type":"string","minLength":1,"maxLength":64},"message":{"type":"string"},"timeoutSeconds":{"type":"number","minimum":0}}}}},{"type":"function","function":{"name":"sessions_spawn","description":"Spawn a clean isolated session by default with the native subagent runtime. `mode=\"run\"` is one-shot background work. Subagents inherit the parent workspace directory automatically. For native subagents only, set `context=\"fork\"` when the child needs the current transcript context; otherwise omit it or use `context=\"isolated\"`. Use this when the work should happen in a fresh child session instead of the current one.","parameters":{"type":"object","required":["task"],"properties":{"task":{"type":"string"},"taskName":{"type":"string","description":"Stable optional alias for later subagents targeting. Use lowercase letters, digits, and underscores, starting with a letter."},"label":{"type":"string"},"runtime":{"type":"string","enum":["subagent"]},"agentId":{"type":"string"},"model":{"type":"string"},"thinking":{"type":"string"},"cwd":{"type":"string"},"runTimeoutSeconds":{"type":"number","minimum":0},"timeoutSeconds":{"type":"number","minimum":0},"mode":{"type":"string","enum":["run"]},"cleanup":{"type":"string","enum":["delete","keep"]},"sandbox":{"type":"string","enum":["inherit","require"]},"context":{"type":"string","enum":["isolated","fork"],"description":"Native subagent context mode. Omit or use \"isolated\" for a clean child session; use \"fork\" only when the child needs the requester transcript context."},"lightContext":{"type":"boolean","description":"When true, spawned subagent runs use lightweight bootstrap context. Only applies to runtime='subagent'."},"attachments":{"type":"array","items":{"type":"object","required":["name","content"],"properties":{"name":{"type":"string"},"content":{"type":"string"},"encoding":{"type":"string","enum":["utf8","base64"]},"mimeType":{"type":"string"}}},"maxItems":50},"attachAs":{"type":"object","properties":{"mountPath":{"type":"string"}}}}}}},{"type":"function","function":{"name":"sessions_yield","description":"End your current turn. Use after spawning subagents to receive their results as the next message.","parameters":{"type":"object","properties":{"message":{"type":"string"}}}}},{"type":"function","function":{"name":"subagents","description":"On-demand list, kill, or steer spawned sub-agents for this requester session. If sessions_yield is available, use it to wait for completion events; do not poll this tool in wait loops.","parameters":{"type":"object","properties":{"action":{"type":"string","enum":["list","kill","steer"]},"target":{"type":"string"},"message":{"type":"string"},"recentMinutes":{"type":"number","minimum":1}}}}},{"type":"function","function":{"name":"update_plan","description":"Update the current structured work plan for this run. Use this for non-trivial multi-step work so the plan stays current while execution continues. Keep steps short, mark at most one step as `in_progress`, and skip this tool for simple one-step tasks.","parameters":{"type":"object","required":["plan"],"properties":{"explanation":{"type":"string","description":"Optional short note explaining what changed in the plan."},"plan":{"type":"array","items":{"type":"object","required":["step","status"],"properties":{"step":{"type":"string","description":"Short plan step."},"status":{"type":"string","enum":["pending","in_progress","completed"],"description":"One of \"pending\", \"in_progress\", or \"completed\"."}},"additionalProperties":true},"minItems":1,"description":"Ordered list of plan steps. At most one step may be in_progress."}}}}},{"type":"function","function":{"name":"video_generate","description":"Generate videos using configured providers. Generated videos are saved under OpenClaw-managed media storage and delivered automatically as attachments. Duration requests may be rounded to the nearest provider-supported value.","parameters":{"type":"object","properties":{"action":{"type":"string","description":"Optional action: \"generate\" (default), \"status\" to inspect the active session task, or \"list\" to inspect available providers/models."},"prompt":{"type":"string","description":"Video generation prompt."},"image":{"type":"string","description":"Optional single reference image path or URL."},"images":{"type":"array","items":{"type":"string"},"description":"Optional reference images (up to 9)."},"imageRoles":{"type":"array","items":{"type":"string"},"description":"Optional semantic roles for the combined reference image list, parallel by index. The list is `image` (if provided) followed by each entry in `images`, in order, after de-duplication. Canonical values: \"first_frame\", \"last_frame\", \"reference_image\". Providers may accept additional role strings. Must not have more entries than the combined image list; use an empty string to leave a position unset."},"video":{"type":"string","description":"Optional single reference video path or URL."},"videos":{"type":"array","items":{"type":"string"},"description":"Optional reference videos (up to 4)."},"videoRoles":{"type":"array","items":{"type":"string"},"description":"Optional semantic roles for the combined reference video list, parallel by index. The list is `video` (if provided) followed by each entry in `videos`, in order, after de-duplication. Canonical value: \"reference_video\". Providers may accept additional role strings. Must not have more entries than the combined video list; use an empty string to leave a position unset."},"audioRef":{"type":"string","description":"Optional single reference audio path or URL (e.g. background music)."},"audioRefs":{"type":"array","items":{"type":"string"},"description":"Optional reference audios (up to 3)."},"audioRoles":{"type":"array","items":{"type":"string"},"description":"Optional semantic roles for the combined reference audio list, parallel by index. The list is `audioRef` (if provided) followed by each entry in `audioRefs`, in order, after de-duplication. Canonical value: \"reference_audio\". Providers may accept additional role strings. Must not have more entries than the combined audio list; use an empty string to leave a position unset."},"model":{"type":"string","description":"Optional provider/model override, e.g. qwen/wan2.6-t2v."},"filename":{"type":"string","description":"Optional output filename hint. OpenClaw preserves the basename and saves under its managed media directory."},"size":{"type":"string","description":"Optional size hint like 1280x720 or 1920x1080 when the provider supports it."},"aspectRatio":{"type":"string","description":"Optional aspect ratio hint such as 1:1, 16:9, 9:16, \"adaptive\", or a provider-specific value. OpenClaw normalizes or ignores unsupported values per provider."},"resolution":{"type":"string","description":"Optional resolution hint such as 480P, 720P, 768P, 1080P, 4K, or a provider-specific value. OpenClaw normalizes or ignores unsupported values per provider."},"durationSeconds":{"type":"number","description":"Optional target duration in seconds. OpenClaw may round this to the nearest provider-supported duration.","minimum":1},"audio":{"type":"boolean","description":"Optional audio toggle when the provider supports generated audio."},"watermark":{"type":"boolean","description":"Optional watermark toggle when the provider supports it."},"providerOptions":{"type":"object","patternProperties":{"^.*$":{}},"description":"Optional provider-specific options as a JSON object, e.g. `{\"seed\": 42, \"draft\": true}`. Each provider declares its own accepted keys and primitive types (number/boolean/string) via its capabilities; unknown keys or type mismatches skip the candidate during fallback and never silently reach the wrong provider. Run `video_generate action=list` to see which keys each provider accepts."},"timeoutMs":{"type":"number","description":"Optional provider request timeout in milliseconds.","minimum":1}}}}},{"type":"function","function":{"name":"web_fetch","description":"Fetch and extract readable content from a URL (HTML → markdown/text). Use for lightweight page access without browser automation.","parameters":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"HTTP or HTTPS URL to fetch."},"extractMode":{"type":"string","enum":["markdown","text"],"description":"Extraction mode (\"markdown\" or \"text\").","default":"markdown"},"maxChars":{"type":"number","description":"Maximum characters to return (truncates when exceeded).","minimum":100}}}}},{"type":"function","function":{"name":"wiki_apply","description":"Apply narrow wiki mutations for syntheses and page metadata without freeform markdown surgery.","parameters":{"type":"object","required":["op"],"properties":{"op":{"anyOf":[{"type":"string","const":"create_synthesis"},{"type":"string","const":"update_metadata"}]},"title":{"type":"string","minLength":1},"body":{"type":"string","minLength":1},"lookup":{"type":"string","minLength":1},"sourceIds":{"type":"array","items":{"type":"string","minLength":1}},"claims":{"type":"array","items":{"type":"object","required":["text"],"properties":{"id":{"type":"string","minLength":1},"text":{"type":"string","minLength":1},"status":{"type":"string","minLength":1},"confidence":{"type":"number","minimum":0,"maximum":1},"evidence":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","minLength":1},"sourceId":{"type":"string","minLength":1},"path":{"type":"string","minLength":1},"lines":{"type":"string","minLength":1},"weight":{"type":"number","minimum":0},"note":{"type":"string","minLength":1},"confidence":{"type":"number","minimum":0,"maximum":1},"privacyTier":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1}},"additionalProperties":false}},"updatedAt":{"type":"string","minLength":1}},"additionalProperties":false}},"contradictions":{"type":"array","items":{"type":"string","minLength":1}},"questions":{"type":"array","items":{"type":"string","minLength":1}},"confidence":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"status":{"type":"string","minLength":1}},"additionalProperties":false}}},{"type":"function","function":{"name":"wiki_get","description":"Read a wiki page by id or relative path, or fall back to the active memory corpus when shared search is enabled.","parameters":{"type":"object","required":["lookup"],"properties":{"lookup":{"type":"string","minLength":1},"fromLine":{"type":"number","minimum":1},"lineCount":{"type":"number","minimum":1},"backend":{"anyOf":[{"type":"string","const":"shared"},{"type":"string","const":"local"}]},"corpus":{"anyOf":[{"type":"string","const":"wiki"},{"type":"string","const":"memory"},{"type":"string","const":"all"}]}},"additionalProperties":false}}},{"type":"function","function":{"name":"wiki_lint","description":"Lint the wiki vault and surface structural issues, provenance gaps, contradictions, and open questions.","parameters":{"type":"object","properties":{},"additionalProperties":false}}},{"type":"function","function":{"name":"wiki_search","description":"Search wiki pages and, when shared search is enabled, the active memory corpus by title, path, id, or body text.","parameters":{"type":"object","required":["query"],"properties":{"query":{"type":"string","minLength":1},"maxResults":{"type":"number","minimum":1},"backend":{"anyOf":[{"type":"string","const":"shared"},{"type":"string","const":"local"}]},"corpus":{"anyOf":[{"type":"string","const":"wiki"},{"type":"string","const":"memory"},{"type":"string","const":"all"}]},"mode":{"anyOf":[{"type":"string","const":"auto"},{"type":"string","const":"find-person"},{"type":"string","const":"route-question"},{"type":"string","const":"source-evidence"},{"type":"string","const":"raw-claim"}]}},"additionalProperties":false}}},{"type":"function","function":{"name":"wiki_status","description":"Inspect the current memory wiki vault mode, health, and Obsidian CLI availability.","parameters":{"type":"object","properties":{},"additionalProperties":false}}},{"type":"function","function":{"name":"write","description":"Write content to a file. Creates the file if it doesn't exist, overwrites if it does. Automatically creates parent directories.","parameters":{"type":"object","required":["path","content"],"properties":{"path":{"type":"string","description":"Path to the file to write (relative or absolute)"},"content":{"type":"string","description":"Content to write to the file"}}}}}]
1
+ [{"type":"function","function":{"name":"browser","description":"Control the browser via OpenClaw's browser control server (status/start/stop/profiles/tabs/open/snapshot/screenshot/actions). Browser choice: omit profile by default for the isolated OpenClaw-managed browser (`openclaw`). For the logged-in user browser, use profile=\"user\". A supported Chromium-based browser (v144+) must be running on the selected host or browser node. Use only when existing logins/cookies matter and the user is present. For profile=\"user\" or other existing-session profiles, omit timeoutMs on act:type, evaluate, hover, scrollIntoView, drag, select, and fill; that driver rejects per-call timeout overrides for those actions. When a node-hosted browser proxy is available, the tool may auto-route to it. Pin a node with node=<id|name> or target=\"node\". When using refs from snapshot (e.g. e12), keep the same tab: prefer passing targetId from the snapshot response into subsequent actions (act/click/type/etc). For tab operations, targetId also accepts tabId handles (t1) and labels from action=tabs. For multi-step browser work, login checks, stale refs, duplicate tabs, or Google Meet flows, use the bundled browser-automation skill when it is available. For stable, self-resolving refs across calls, use snapshot with refs=\"aria\" (Playwright aria-ref ids). Default refs=\"role\" are role+name-based. Use snapshot+act for UI automation. Avoid act:wait by default; use only in exceptional cases when no reliable UI state exists. target selects browser location (sandbox|host|node). Default: host. Host target allowed.","parameters":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["doctor","status","start","stop","profiles","tabs","open","focus","close","snapshot","screenshot","navigate","console","pdf","upload","dialog","act"]},"target":{"type":"string","enum":["sandbox","host","node"]},"node":{"type":"string"},"profile":{"type":"string"},"targetUrl":{"type":"string"},"url":{"type":"string"},"targetId":{"type":"string"},"label":{"type":"string"},"limit":{"type":"number"},"maxChars":{"type":"number"},"mode":{"type":"string","enum":["efficient"]},"snapshotFormat":{"type":"string","enum":["aria","ai"]},"refs":{"type":"string","enum":["role","aria"]},"interactive":{"type":"boolean"},"compact":{"type":"boolean"},"depth":{"type":"number"},"selector":{"type":"string"},"frame":{"type":"string"},"labels":{"type":"boolean"},"urls":{"type":"boolean"},"fullPage":{"type":"boolean"},"ref":{"type":"string"},"element":{"type":"string"},"type":{"type":"string","enum":["png","jpeg"]},"level":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"inputRef":{"type":"string"},"timeoutMs":{"type":"number"},"accept":{"type":"boolean"},"promptText":{"type":"string"},"kind":{"type":"string","enum":["click","clickCoords","type","press","hover","drag","select","fill","resize","wait","evaluate","close"]},"doubleClick":{"type":"boolean"},"button":{"type":"string"},"modifiers":{"type":"array","items":{"type":"string"}},"x":{"type":"number"},"y":{"type":"number"},"text":{"type":"string"},"submit":{"type":"boolean"},"slowly":{"type":"boolean"},"key":{"type":"string"},"delayMs":{"type":"number"},"startRef":{"type":"string"},"endRef":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"fields":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}},"width":{"type":"number"},"height":{"type":"number"},"timeMs":{"type":"number"},"textGone":{"type":"string"},"loadState":{"type":"string"},"fn":{"type":"string"},"request":{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["click","clickCoords","type","press","hover","drag","select","fill","resize","wait","evaluate","close"]},"targetId":{"type":"string"},"ref":{"type":"string"},"doubleClick":{"type":"boolean"},"button":{"type":"string"},"modifiers":{"type":"array","items":{"type":"string"}},"x":{"type":"number"},"y":{"type":"number"},"text":{"type":"string"},"submit":{"type":"boolean"},"slowly":{"type":"boolean"},"key":{"type":"string"},"delayMs":{"type":"number"},"startRef":{"type":"string"},"endRef":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"fields":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":true}},"width":{"type":"number"},"height":{"type":"number"},"timeMs":{"type":"number"},"selector":{"type":"string"},"url":{"type":"string"},"loadState":{"type":"string"},"textGone":{"type":"string"},"timeoutMs":{"type":"number"},"fn":{"type":"string"}}}}}}},{"type":"function","function":{"name":"edit","description":"Edit a single file using exact text replacement. Every edits[].oldText must match a unique, non-overlapping region of the original file. If two changes affect the same block or nearby lines, merge them into one edit instead of emitting overlapping edits. Do not include large unchanged regions just to connect distant changes.","parameters":{"type":"object","required":["path","edits"],"properties":{"path":{"type":"string","description":"Path to the file to edit (relative or absolute)"},"edits":{"type":"array","items":{"type":"object","required":["oldText","newText"],"properties":{"oldText":{"type":"string","description":"Exact text for one targeted replacement. It must be unique in the original file and must not overlap with any other edits[].oldText in the same call."},"newText":{"type":"string","description":"Replacement text for this targeted edit."}},"additionalProperties":false},"description":"One or more targeted replacements. Each edit is matched against the original file, not incrementally. Do not include overlapping or nested edits. If two changes touch the same block or nearby lines, merge them into one edit instead."}},"additionalProperties":false}}},{"type":"function","function":{"name":"exec","description":"Execute shell commands with background continuation for work that starts now. Use yieldMs/background to continue later via process tool. For long-running work started now, rely on automatic completion wake when it is enabled and the command emits output or fails; otherwise use process to confirm completion. Use process whenever you need logs, status, input, or intervention. Use pty=true for TTY-required commands (terminal UIs, coding agents).","parameters":{"type":"object","required":["command"],"properties":{"command":{"type":"string","description":"Shell command to execute"},"workdir":{"type":"string","description":"Working directory (defaults to cwd)"},"env":{"type":"object","patternProperties":{"^.*$":{"type":"string"}}},"yieldMs":{"type":"number","description":"Milliseconds to wait before backgrounding (default 10000)"},"background":{"type":"boolean","description":"Run in background immediately"},"timeout":{"type":"number","description":"Timeout in seconds (optional, kills process on expiry)"},"pty":{"type":"boolean","description":"Run in a pseudo-terminal (PTY) when available (TTY-required CLIs, coding agents)"},"elevated":{"type":"boolean","description":"Run on the host with elevated permissions (if allowed)"},"host":{"type":"string","enum":["auto","sandbox","gateway","node"],"description":"Exec host/target (auto|sandbox|gateway|node)."},"security":{"type":"string","description":"Exec security mode (deny|allowlist|full)."},"ask":{"type":"string","description":"Exec ask mode (off|on-miss|always)."},"node":{"type":"string","description":"Node id/name for host=node."}}}}},{"type":"function","function":{"name":"image","description":"Analyze one or more images with a vision model. Use image for a single path/URL, or images for multiple (up to 20). Only use this tool when images were NOT already provided in the user's message. Images mentioned in the prompt are automatically visible to you.","parameters":{"type":"object","properties":{"prompt":{"type":"string"},"image":{"type":"string","description":"Single image path or URL."},"images":{"type":"array","items":{"type":"string"},"description":"Multiple image paths or URLs (up to maxImages, default 20)."},"model":{"type":"string"},"maxBytesMb":{"type":"number"},"maxImages":{"type":"number"}}}}},{"type":"function","function":{"name":"image_generate","description":"Generate new images or edit reference images with the configured or inferred image-generation model. For transparent backgrounds, use outputFormat=\"png\" or \"webp\" and background=\"transparent\"; OpenAI also accepts openai.background and OpenClaw routes the default OpenAI image model to gpt-image-1.5 for that mode. Set agents.defaults.imageGenerationModel.primary to pick a provider/model. Providers declare their own auth/readiness; use action=\"list\" to inspect registered providers, models, readiness, and auth hints. Generated images are delivered automatically from the tool result as MEDIA paths.","parameters":{"type":"object","properties":{"action":{"type":"string","description":"Optional action: \"generate\" (default) or \"list\" to inspect available providers/models."},"prompt":{"type":"string","description":"Image generation prompt."},"image":{"type":"string","description":"Optional reference image path or URL for edit mode."},"images":{"type":"array","items":{"type":"string"},"description":"Optional reference images for edit mode (up to 5)."},"model":{"type":"string","description":"Optional provider/model override, e.g. openai/gpt-image-2; use openai/gpt-image-1.5 for transparent OpenAI backgrounds."},"filename":{"type":"string","description":"Optional output filename hint. OpenClaw preserves the basename and saves under its managed media directory."},"size":{"type":"string","description":"Optional size hint like 1024x1024, 1536x1024, 1024x1536, 2048x2048, or 3840x2160."},"aspectRatio":{"type":"string","description":"Optional aspect ratio hint: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, or 21:9."},"resolution":{"type":"string","description":"Optional resolution hint: 1K, 2K, or 4K. Useful for Google edit/generation flows."},"quality":{"type":"string","enum":["low","medium","high","auto"],"description":"Optional quality hint: low, medium, high, or auto when the provider supports it."},"outputFormat":{"type":"string","enum":["png","jpeg","webp"],"description":"Optional output format hint: png, jpeg, or webp when the provider supports it."},"background":{"type":"string","enum":["transparent","opaque","auto"],"description":"Optional background hint: transparent, opaque, or auto when the provider supports it. For transparent output use outputFormat png or webp."},"openai":{"type":"object","properties":{"background":{"type":"string","enum":["transparent","opaque","auto"],"description":"OpenAI-only background hint: transparent, opaque, or auto. For transparent output use outputFormat png or webp; OpenClaw routes the default OpenAI image model to gpt-image-1.5 for this mode."},"moderation":{"type":"string","enum":["low","auto"],"description":"OpenAI-only moderation hint: low or auto."},"outputCompression":{"type":"number","description":"OpenAI-only compression level for jpeg/webp outputFormat, 0-100.","minimum":0,"maximum":100},"user":{"type":"string","description":"OpenAI-only stable end-user identifier for abuse monitoring."}}},"count":{"type":"number","description":"Optional number of images to request (1-4).","minimum":1,"maximum":4},"timeoutMs":{"type":"number","description":"Optional provider request timeout in milliseconds.","minimum":1}}}}},{"type":"function","function":{"name":"memory_get","description":"Safe exact excerpt read from MEMORY.md or memory/*.md. Defaults to a bounded excerpt when lines are omitted, includes truncation/continuation info when more content exists, and `corpus=wiki` reads from registered compiled-wiki supplements.","parameters":{"type":"object","required":["path"],"properties":{"path":{"type":"string"},"from":{"type":"number"},"lines":{"type":"number"},"corpus":{"anyOf":[{"type":"string","const":"memory"},{"type":"string","const":"wiki"},{"type":"string","const":"all"}]}}}}},{"type":"function","function":{"name":"memory_search","description":"Mandatory recall step: semantically search MEMORY.md + memory/*.md (and optional session transcripts) before answering questions about prior work, decisions, dates, people, preferences, or todos. Optional `corpus=wiki` or `corpus=all` also searches registered compiled-wiki supplements. `corpus=memory` restricts hits to indexed memory files (excludes session transcript chunks from ranking). `corpus=sessions` restricts hits to indexed session transcripts (same visibility rules as session history tools). If response has disabled=true, memory retrieval is unavailable and should be surfaced to the user.","parameters":{"type":"object","required":["query"],"properties":{"query":{"type":"string"},"maxResults":{"type":"number"},"minScore":{"type":"number"},"corpus":{"anyOf":[{"type":"string","const":"memory"},{"type":"string","const":"wiki"},{"type":"string","const":"all"},{"type":"string","const":"sessions"}]}}}}},{"type":"function","function":{"name":"music_generate","description":"Generate music using configured providers. Generated tracks are saved under OpenClaw-managed media storage and delivered automatically as attachments.","parameters":{"type":"object","properties":{"action":{"type":"string","description":"Optional action: \"generate\" (default), \"status\" to inspect the active session task, or \"list\" to inspect available providers/models."},"prompt":{"type":"string","description":"Music generation prompt."},"lyrics":{"type":"string","description":"Optional lyrics to guide sung output when the provider supports it."},"instrumental":{"type":"boolean","description":"Optional toggle for instrumental-only output when the provider supports it."},"image":{"type":"string","description":"Optional single reference image path or URL."},"images":{"type":"array","items":{"type":"string"},"description":"Optional reference images (up to 10)."},"model":{"type":"string","description":"Optional provider/model override, e.g. google/lyria-3-pro-preview."},"durationSeconds":{"type":"number","description":"Optional target duration in seconds when the provider supports duration hints.","minimum":1},"timeoutMs":{"type":"number","description":"Optional provider request timeout in milliseconds.","minimum":1},"format":{"type":"string","description":"Optional output format hint: \"mp3\" or \"wav\" when the provider supports it."},"filename":{"type":"string","description":"Optional output filename hint. OpenClaw preserves the basename and saves under its managed media directory."}}}}},{"type":"function","function":{"name":"process","description":"Manage running exec sessions for commands already started: list, poll, log, write, send-keys, submit, paste, kill. Use poll/log when you need status, logs, quiet-success confirmation, or completion confirmation when automatic completion wake is unavailable. Use write/send-keys/submit/paste/kill for input or intervention.","parameters":{"type":"object","required":["action"],"properties":{"action":{"type":"string","description":"Process action"},"sessionId":{"type":"string","description":"Session id for actions other than list"},"data":{"type":"string","description":"Data to write for write"},"keys":{"type":"array","items":{"type":"string"},"description":"Key tokens to send for send-keys"},"hex":{"type":"array","items":{"type":"string"},"description":"Hex bytes to send for send-keys"},"literal":{"type":"string","description":"Literal string for send-keys"},"text":{"type":"string","description":"Text to paste for paste"},"bracketed":{"type":"boolean","description":"Wrap paste in bracketed mode"},"eof":{"type":"boolean","description":"Close stdin after write"},"offset":{"type":"number","description":"Log offset"},"limit":{"type":"number","description":"Log length"},"timeout":{"type":"number","description":"For poll: wait up to this many milliseconds before returning; max 30000 ms, higher values are clamped to 30000","minimum":0}}}}},{"type":"function","function":{"name":"read","description":"Read the contents of a file. Supports text files and images (jpg, png, gif, webp). Images are sent as attachments. For text files, output is truncated to 2000 lines or 50KB (whichever is hit first). Use offset/limit for large files. When you need the full file, continue with offset until complete.","parameters":{"type":"object","required":["path"],"properties":{"path":{"type":"string","description":"Path to the file to read (relative or absolute)"},"offset":{"type":"number","description":"Line number to start reading from (1-indexed)"},"limit":{"type":"number","description":"Maximum number of lines to read"}}}}},{"type":"function","function":{"name":"session_status","description":"Show a /status-equivalent session status card for the current or another visible session, including usage, time, cost when available, and linked background task context. Use `sessionKey=\"current\"` for the current session; do not use UI/client labels such as `openclaw-tui` as session keys. Optional `model` sets a per-session model override; `model=default` resets overrides. Use this for questions like what model is active or how a session is configured.","parameters":{"type":"object","properties":{"sessionKey":{"type":"string"},"model":{"type":"string"}}}}},{"type":"function","function":{"name":"sessions_history","description":"Fetch sanitized message history for a visible session. Supports limits and optional tool messages; use this to inspect another session before replying, debugging, or resuming work.","parameters":{"type":"object","required":["sessionKey"],"properties":{"sessionKey":{"type":"string"},"limit":{"type":"number","minimum":1},"includeTools":{"type":"boolean"}}}}},{"type":"function","function":{"name":"sessions_list","description":"List visible sessions with optional filters for kind, label, agentId, search, recent activity, derived titles, and last-message previews. Use this to discover a target session before calling sessions_history or sessions_send.","parameters":{"type":"object","properties":{"kinds":{"type":"array","items":{"type":"string"}},"limit":{"type":"number","minimum":1},"activeMinutes":{"type":"number","minimum":1},"messageLimit":{"type":"number","minimum":0},"label":{"type":"string","minLength":1},"agentId":{"type":"string","minLength":1,"maxLength":64},"search":{"type":"string","minLength":1},"includeDerivedTitles":{"type":"boolean"},"includeLastMessage":{"type":"boolean"}}}}},{"type":"function","function":{"name":"sessions_send","description":"Send a message into another visible session by sessionKey or label. Use this to delegate follow-up work to an existing session; waits for the target run and returns the updated assistant reply when available.","parameters":{"type":"object","required":["message"],"properties":{"sessionKey":{"type":"string"},"label":{"type":"string","minLength":1,"maxLength":512},"agentId":{"type":"string","minLength":1,"maxLength":64},"message":{"type":"string"},"timeoutSeconds":{"type":"number","minimum":0}}}}},{"type":"function","function":{"name":"sessions_spawn","description":"Spawn a clean isolated session by default with the native subagent runtime. `mode=\"run\"` is one-shot and `mode=\"session\"` is persistent or thread-bound. Subagents inherit the parent workspace directory automatically. For native subagents only, set `context=\"fork\"` when the child needs the current transcript context; otherwise omit it or use `context=\"isolated\"`. Use this when the work should happen in a fresh child session instead of the current one.","parameters":{"type":"object","required":["task"],"properties":{"task":{"type":"string"},"label":{"type":"string"},"runtime":{"type":"string","enum":["subagent"]},"agentId":{"type":"string"},"model":{"type":"string"},"thinking":{"type":"string"},"cwd":{"type":"string"},"runTimeoutSeconds":{"type":"number","minimum":0},"timeoutSeconds":{"type":"number","minimum":0},"thread":{"type":"boolean"},"mode":{"type":"string","enum":["run","session"]},"cleanup":{"type":"string","enum":["delete","keep"]},"sandbox":{"type":"string","enum":["inherit","require"]},"context":{"type":"string","enum":["isolated","fork"],"description":"Native subagent context mode. Omit or use \"isolated\" for a clean child session; use \"fork\" only when the child needs the requester transcript context."},"lightContext":{"type":"boolean","description":"When true, spawned subagent runs use lightweight bootstrap context. Only applies to runtime='subagent'."},"attachments":{"type":"array","items":{"type":"object","required":["name","content"],"properties":{"name":{"type":"string"},"content":{"type":"string"},"encoding":{"type":"string","enum":["utf8","base64"]},"mimeType":{"type":"string"}}},"maxItems":50},"attachAs":{"type":"object","properties":{"mountPath":{"type":"string"}}}}}}},{"type":"function","function":{"name":"sessions_yield","description":"End your current turn. Use after spawning subagents to receive their results as the next message.","parameters":{"type":"object","properties":{"message":{"type":"string"}}}}},{"type":"function","function":{"name":"subagents","description":"List, kill, or steer spawned sub-agents for this requester session. Use this for sub-agent orchestration.","parameters":{"type":"object","properties":{"action":{"type":"string","enum":["list","kill","steer"]},"target":{"type":"string"},"message":{"type":"string"},"recentMinutes":{"type":"number","minimum":1}}}}},{"type":"function","function":{"name":"video_generate","description":"Generate videos using configured providers. Generated videos are saved under OpenClaw-managed media storage and delivered automatically as attachments. Duration requests may be rounded to the nearest provider-supported value.","parameters":{"type":"object","properties":{"action":{"type":"string","description":"Optional action: \"generate\" (default), \"status\" to inspect the active session task, or \"list\" to inspect available providers/models."},"prompt":{"type":"string","description":"Video generation prompt."},"image":{"type":"string","description":"Optional single reference image path or URL."},"images":{"type":"array","items":{"type":"string"},"description":"Optional reference images (up to 9)."},"imageRoles":{"type":"array","items":{"type":"string"},"description":"Optional semantic roles for the combined reference image list, parallel by index. The list is `image` (if provided) followed by each entry in `images`, in order, after de-duplication. Canonical values: \"first_frame\", \"last_frame\", \"reference_image\". Providers may accept additional role strings. Must not have more entries than the combined image list; use an empty string to leave a position unset."},"video":{"type":"string","description":"Optional single reference video path or URL."},"videos":{"type":"array","items":{"type":"string"},"description":"Optional reference videos (up to 4)."},"videoRoles":{"type":"array","items":{"type":"string"},"description":"Optional semantic roles for the combined reference video list, parallel by index. The list is `video` (if provided) followed by each entry in `videos`, in order, after de-duplication. Canonical value: \"reference_video\". Providers may accept additional role strings. Must not have more entries than the combined video list; use an empty string to leave a position unset."},"audioRef":{"type":"string","description":"Optional single reference audio path or URL (e.g. background music)."},"audioRefs":{"type":"array","items":{"type":"string"},"description":"Optional reference audios (up to 3)."},"audioRoles":{"type":"array","items":{"type":"string"},"description":"Optional semantic roles for the combined reference audio list, parallel by index. The list is `audioRef` (if provided) followed by each entry in `audioRefs`, in order, after de-duplication. Canonical value: \"reference_audio\". Providers may accept additional role strings. Must not have more entries than the combined audio list; use an empty string to leave a position unset."},"model":{"type":"string","description":"Optional provider/model override, e.g. qwen/wan2.6-t2v."},"filename":{"type":"string","description":"Optional output filename hint. OpenClaw preserves the basename and saves under its managed media directory."},"size":{"type":"string","description":"Optional size hint like 1280x720 or 1920x1080 when the provider supports it."},"aspectRatio":{"type":"string","description":"Optional aspect ratio hint: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, or \"adaptive\"."},"resolution":{"type":"string","description":"Optional resolution hint: 480P, 720P, 768P, or 1080P."},"durationSeconds":{"type":"number","description":"Optional target duration in seconds. OpenClaw may round this to the nearest provider-supported duration.","minimum":1},"audio":{"type":"boolean","description":"Optional audio toggle when the provider supports generated audio."},"watermark":{"type":"boolean","description":"Optional watermark toggle when the provider supports it."},"providerOptions":{"type":"object","patternProperties":{"^.*$":{}},"description":"Optional provider-specific options as a JSON object, e.g. `{\"seed\": 42, \"draft\": true}`. Each provider declares its own accepted keys and primitive types (number/boolean/string) via its capabilities; unknown keys or type mismatches skip the candidate during fallback and never silently reach the wrong provider. Run `video_generate action=list` to see which keys each provider accepts."},"timeoutMs":{"type":"number","description":"Optional provider request timeout in milliseconds.","minimum":1}}}}},{"type":"function","function":{"name":"web_fetch","description":"Fetch and extract readable content from a URL (HTML → markdown/text). Use for lightweight page access without browser automation.","parameters":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"HTTP or HTTPS URL to fetch."},"extractMode":{"type":"string","enum":["markdown","text"],"description":"Extraction mode (\"markdown\" or \"text\").","default":"markdown"},"maxChars":{"type":"number","description":"Maximum characters to return (truncates when exceeded).","minimum":100}}}}},{"type":"function","function":{"name":"wiki_apply","description":"Apply narrow wiki mutations for syntheses and page metadata without freeform markdown surgery.","parameters":{"type":"object","required":["op"],"properties":{"op":{"anyOf":[{"type":"string","const":"create_synthesis"},{"type":"string","const":"update_metadata"}]},"title":{"type":"string","minLength":1},"body":{"type":"string","minLength":1},"lookup":{"type":"string","minLength":1},"sourceIds":{"type":"array","items":{"type":"string","minLength":1}},"claims":{"type":"array","items":{"type":"object","required":["text"],"properties":{"id":{"type":"string","minLength":1},"text":{"type":"string","minLength":1},"status":{"type":"string","minLength":1},"confidence":{"type":"number","minimum":0,"maximum":1},"evidence":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","minLength":1},"sourceId":{"type":"string","minLength":1},"path":{"type":"string","minLength":1},"lines":{"type":"string","minLength":1},"weight":{"type":"number","minimum":0},"note":{"type":"string","minLength":1},"confidence":{"type":"number","minimum":0,"maximum":1},"privacyTier":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1}},"additionalProperties":false}},"updatedAt":{"type":"string","minLength":1}},"additionalProperties":false}},"contradictions":{"type":"array","items":{"type":"string","minLength":1}},"questions":{"type":"array","items":{"type":"string","minLength":1}},"confidence":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"status":{"type":"string","minLength":1}},"additionalProperties":false}}},{"type":"function","function":{"name":"wiki_get","description":"Read a wiki page by id or relative path, or fall back to the active memory corpus when shared search is enabled.","parameters":{"type":"object","required":["lookup"],"properties":{"lookup":{"type":"string","minLength":1},"fromLine":{"type":"number","minimum":1},"lineCount":{"type":"number","minimum":1},"backend":{"anyOf":[{"type":"string","const":"shared"},{"type":"string","const":"local"}]},"corpus":{"anyOf":[{"type":"string","const":"wiki"},{"type":"string","const":"memory"},{"type":"string","const":"all"}]}},"additionalProperties":false}}},{"type":"function","function":{"name":"wiki_lint","description":"Lint the wiki vault and surface structural issues, provenance gaps, contradictions, and open questions.","parameters":{"type":"object","properties":{},"additionalProperties":false}}},{"type":"function","function":{"name":"wiki_search","description":"Search wiki pages and, when shared search is enabled, the active memory corpus by title, path, id, or body text.","parameters":{"type":"object","required":["query"],"properties":{"query":{"type":"string","minLength":1},"maxResults":{"type":"number","minimum":1},"backend":{"anyOf":[{"type":"string","const":"shared"},{"type":"string","const":"local"}]},"corpus":{"anyOf":[{"type":"string","const":"wiki"},{"type":"string","const":"memory"},{"type":"string","const":"all"}]},"mode":{"anyOf":[{"type":"string","const":"auto"},{"type":"string","const":"find-person"},{"type":"string","const":"route-question"},{"type":"string","const":"source-evidence"},{"type":"string","const":"raw-claim"}]}},"additionalProperties":false}}},{"type":"function","function":{"name":"wiki_status","description":"Inspect the current memory wiki vault mode, health, and Obsidian CLI availability.","parameters":{"type":"object","properties":{},"additionalProperties":false}}},{"type":"function","function":{"name":"write","description":"Write content to a file. Creates the file if it doesn't exist, overwrites if it does. Automatically creates parent directories.","parameters":{"type":"object","required":["path","content"],"properties":{"path":{"type":"string","description":"Path to the file to write (relative or absolute)"},"content":{"type":"string","description":"Content to write to the file"}}}}}]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a1hvdy/cc-openclaw",
3
- "version": "0.18.1",
3
+ "version": "0.19.0",
4
4
  "description": "A1xAI's Anthropic CLI bridge plugin for OpenClaw",
5
5
  "author": "@a1cy",
6
6
  "license": "MIT",
@@ -1,34 +0,0 @@
1
- /**
2
- * turn-trace — per-session disk sink for cc-openclaw trajectory events.
3
- *
4
- * Mirrors every `trajectory.emit()` call into a per-session JSONL file at
5
- * `~/.openclaw/workspace/debug/turn-trace/<sessionId>.jsonl`. The global
6
- * trajectory log keeps working as before; this sink adds shardable output
7
- * for debugging "what did session X actually see and emit".
8
- *
9
- * Motivation: v0.14.0's NO_REPLY 4-layer defense interacted badly with
10
- * short questions, producing greeting-only output ("Hey A1.") that looked
11
- * just as broken as silence. A1 needs ground-truth to tune the classifier
12
- * without guessing — this sink captures the data.
13
- *
14
- * Default OFF — set OPENCLAW_TURN_TRACE=1 in env to opt in. Independent
15
- * from CC_OPENCLAW_TRAJECTORY (the global sink); either, both, or neither
16
- * can run.
17
- *
18
- * v0.15.0 ships per-session sharding (one file per sessionId lifecycle).
19
- * v0.15.1 will switch to per-turn sharding once a turnId is threaded
20
- * through the request_in → response_complete event chain.
21
- */
22
- import type { TrajectoryEvent } from './trajectory.js';
23
- /**
24
- * Append a trajectory event to the per-session JSONL file. No-op if disabled
25
- * or if the event has no sessionId (can't shard without a key).
26
- *
27
- * Writes are sync (matches trajectory.emit semantics — preserves ordering).
28
- * File-system errors are swallowed: observability must never break prod.
29
- */
30
- export declare function capture(event: TrajectoryEvent): void;
31
- /** Reset module state for tests (re-creates dir on next capture). */
32
- export declare function _resetForTests(): void;
33
- /** Compute the on-disk path a given sessionId would resolve to. Test-only. */
34
- export declare function _pathForSession(sessionId: string): string;
@@ -1,75 +0,0 @@
1
- // phase: v0.15.0 | pillar: Observability | agent: Primary
2
- /**
3
- * turn-trace — per-session disk sink for cc-openclaw trajectory events.
4
- *
5
- * Mirrors every `trajectory.emit()` call into a per-session JSONL file at
6
- * `~/.openclaw/workspace/debug/turn-trace/<sessionId>.jsonl`. The global
7
- * trajectory log keeps working as before; this sink adds shardable output
8
- * for debugging "what did session X actually see and emit".
9
- *
10
- * Motivation: v0.14.0's NO_REPLY 4-layer defense interacted badly with
11
- * short questions, producing greeting-only output ("Hey A1.") that looked
12
- * just as broken as silence. A1 needs ground-truth to tune the classifier
13
- * without guessing — this sink captures the data.
14
- *
15
- * Default OFF — set OPENCLAW_TURN_TRACE=1 in env to opt in. Independent
16
- * from CC_OPENCLAW_TRAJECTORY (the global sink); either, both, or neither
17
- * can run.
18
- *
19
- * v0.15.0 ships per-session sharding (one file per sessionId lifecycle).
20
- * v0.15.1 will switch to per-turn sharding once a turnId is threaded
21
- * through the request_in → response_complete event chain.
22
- */
23
- import { appendFileSync, mkdirSync } from 'node:fs';
24
- import { join } from 'node:path';
25
- import { homedir } from 'node:os';
26
- // ─── Config ──────────────────────────────────────────────────────────────────
27
- const DEFAULT_DIR = join(homedir(), '.openclaw', 'workspace', 'debug', 'turn-trace');
28
- function isEnabled() {
29
- const v = process.env.OPENCLAW_TURN_TRACE;
30
- if (!v)
31
- return false;
32
- return v === '1' || v.toLowerCase() === 'true' || v.toLowerCase() === 'on';
33
- }
34
- function getDir() {
35
- return process.env.OPENCLAW_TURN_TRACE_DIR || DEFAULT_DIR;
36
- }
37
- // ─── Sink ────────────────────────────────────────────────────────────────────
38
- let _ensuredDir = false;
39
- /**
40
- * Append a trajectory event to the per-session JSONL file. No-op if disabled
41
- * or if the event has no sessionId (can't shard without a key).
42
- *
43
- * Writes are sync (matches trajectory.emit semantics — preserves ordering).
44
- * File-system errors are swallowed: observability must never break prod.
45
- */
46
- export function capture(event) {
47
- if (!isEnabled())
48
- return;
49
- if (!event.sessionId)
50
- return;
51
- try {
52
- const dir = getDir();
53
- if (!_ensuredDir) {
54
- mkdirSync(dir, { recursive: true });
55
- _ensuredDir = true;
56
- }
57
- const safeKey = event.sessionId.replace(/[^a-zA-Z0-9_.-]/g, '_');
58
- const path = join(dir, `${safeKey}.jsonl`);
59
- appendFileSync(path, JSON.stringify(event) + '\n', 'utf8');
60
- }
61
- catch {
62
- // observability — never break production
63
- }
64
- }
65
- // ─── Test helpers ────────────────────────────────────────────────────────────
66
- /** Reset module state for tests (re-creates dir on next capture). */
67
- export function _resetForTests() {
68
- _ensuredDir = false;
69
- }
70
- /** Compute the on-disk path a given sessionId would resolve to. Test-only. */
71
- export function _pathForSession(sessionId) {
72
- const safeKey = sessionId.replace(/[^a-zA-Z0-9_.-]/g, '_');
73
- return join(getDir(), `${safeKey}.jsonl`);
74
- }
75
- //# sourceMappingURL=turn-trace.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"turn-trace.js","sourceRoot":"","sources":["../../../src/lib/turn-trace.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,IAAI,EAAW,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGlC,gFAAgF;AAEhF,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,CAAC,CA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