-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenclaw.plugin.json
More file actions
282 lines (282 loc) · 9.46 KB
/
Copy pathopenclaw.plugin.json
File metadata and controls
282 lines (282 loc) · 9.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
{
"id": "openclaw-workflow",
"name": "Workflow Orchestrator",
"description": "YAML/JSON-driven workflow orchestration for OpenClaw agents with dependency graphs, parallel execution, retries, output gates, dry runs, cancellation, resume, and persisted run state.",
"version": "1.0.0",
"contracts": {
"agentToolResultMiddleware": [
"pi",
"codex"
],
"tools": [
"workflow_run",
"workflow_status",
"workflow_list",
"workflow_cancel",
"write_output",
"read_output",
"list_outputs",
"materialize_output",
"workflow_state_get",
"workflow_step_update",
"workflow_step_complete",
"workflow_observation_read",
"workflow_observation_search",
"workflow_observation_json_path",
"workflow_runtime_patch_status"
]
},
"configSchema": {
"type": "object",
"additionalProperties": true,
"properties": {
"workflowsDir": {
"type": "string",
"description": "Directory containing workflow definition files. Defaults to ~/.openclaw/workflows."
},
"runsDir": {
"type": "string",
"description": "Directory where workflow run state files are stored. Defaults to ~/.openclaw/workflow-runs."
},
"baseDir": {
"type": "string",
"description": "Base directory for resolving relative output file paths. Defaults to the gateway working directory."
},
"concurrency": {
"type": "integer",
"minimum": 1,
"description": "Maximum number of workflow steps that can run in parallel. Defaults to 3."
},
"notifyChannel": {
"type": "string",
"description": "Channel ID or name for workflow progress notifications. If omitted, notifications are logged only."
},
"sessionModel": {
"type": "string",
"description": "Default model for spawned step sessions when a step does not specify its own model."
},
"pollIntervalMs": {
"type": "integer",
"minimum": 250,
"description": "How often to poll step session status in milliseconds. Defaults to 5000."
},
"cronDeliveryMode": {
"type": "string",
"enum": [
"none",
"announce"
],
"description": "Delivery mode for internal workflow step cron jobs. Defaults to none."
},
"cronDeliveryChannel": {
"type": "string",
"description": "Explicit delivery channel for cron jobs when cronDeliveryMode is announce, e.g. discord or whatsapp."
},
"cronDeliveryTo": {
"type": "string",
"description": "Optional explicit delivery target for cron jobs."
},
"sessionAdapter": {
"type": "string",
"enum": [
"auto",
"runtime-subagent",
"legacy-api",
"cli"
],
"description": "Session adapter to use. For headless browser/application workflows, use runtime-subagent."
},
"cliTimeoutMs": {
"type": "integer",
"minimum": 1000
},
"cronAddTimeoutMs": {
"type": "integer",
"minimum": 1000
},
"cronRunTimeoutMs": {
"type": "integer",
"minimum": 1000
},
"cronPollTimeoutMs": {
"type": "integer",
"minimum": 1000
},
"cancelGraceMs": {
"type": "integer",
"minimum": 1000,
"description": "Grace period to wait after requesting worker cancellation."
},
"autoResumeOnStartup": {
"type": "boolean",
"description": "When true, Gateway startup scans persisted workflow runs and automatically resumes runs that were still marked running."
},
"stateBackend": {
"type": "string",
"enum": [
"filesystem",
"redis",
"redis-native",
"redis-mcp",
"auto",
"dual"
],
"description": "Requested workflow state backend. Default: filesystem."
},
"redisUrl": {
"type": "string",
"description": "Native Redis connection URL for workflow state/artifacts."
},
"redisPrefix": {
"type": "string",
"description": "Redis key prefix used by workflow state/artifact backends."
},
"redisPrefer": {
"type": "string",
"enum": [
"native",
"mcp",
"auto"
],
"description": "Preferred Redis transport when using stateBackend=redis or auto."
},
"redisMcpServer": {
"type": "string",
"description": "Explicit MCP server name for Redis access (for example MCP_DOCKER)."
},
"redisMcpConfigPath": {
"type": "string",
"description": "Optional MCPorter config path used when resolving MCP Redis servers."
},
"redisMcpRootDir": {
"type": "string",
"description": "Optional root directory used by MCPorter when resolving relative MCP paths."
},
"redisMcpCallTimeoutMs": {
"type": "integer",
"minimum": 1,
"description": "Timeout for MCP Redis tool calls via MCPorter."
},
"redisMcpServerDefinition": {
"type": "object",
"description": "Optional inline MCP server definition translated to an MCPorter server."
},
"redisMcpToolPrefix": {
"type": "string",
"description": "Deprecated alias for redisMcpServer. Treated as an MCP server name, not a __ tool prefix."
},
"filesystemFallback": {
"type": "boolean",
"description": "When true, fallback to filesystem when Redis is unavailable."
},
"materializeOutputs": {
"type": "string",
"enum": [
"never",
"on_demand",
"always"
],
"description": "Controls when artifact outputs are materialized to filesystem paths."
},
"requireSealedToolResultMiddleware": {
"type": "boolean",
"default": true,
"description": "When true, plugin startup fails if agentToolResultMiddleware could not be registered. Requires the openclaw-workflow trust patch to be applied. Defaults to true."
},
"sealedMaxPreviewBytes": {
"type": "number",
"default": 2048,
"description": "Maximum bytes of a sealed tool-result payload to inline into the model context window. The rest is spooled to the artifact store and accessible via observation tools."
}
}
},
"uiHints": {
"autoResumeOnStartup": {
"label": "Auto-resume on Gateway startup",
"help": "Resume interrupted workflow runs after Gateway restart.",
"advanced": true
},
"workflowsDir": {
"label": "Workflows directory",
"help": "Folder containing .yml, .yaml, and .json workflow definitions.",
"placeholder": "~/.openclaw/workflows"
},
"runsDir": {
"label": "Run state directory",
"help": "Folder where workflow run JSON state files are written.",
"placeholder": "~/.openclaw/workflow-runs"
},
"baseDir": {
"label": "Base directory",
"help": "Relative output paths in workflow steps are resolved under this directory.",
"placeholder": "/home/user/project"
},
"concurrency": {
"label": "Max parallel steps",
"help": "Per-workflow concurrency cap from 1 to 10.",
"placeholder": "3"
},
"notifyChannel": {
"label": "Notification channel",
"help": "Optional channel for workflow progress messages.",
"placeholder": "telegram"
},
"sessionModel": {
"label": "Default step model",
"help": "Used by steps that do not declare their own model.",
"placeholder": "anthropic/claude-sonnet-4-6"
},
"pollIntervalMs": {
"label": "Poll interval",
"help": "Milliseconds between status checks for running step sessions.",
"placeholder": "5000",
"advanced": true
},
"stateBackend": {
"label": "State backend",
"help": "Choose filesystem, redis, auto, or dual backend resolution.",
"placeholder": "auto",
"advanced": true
},
"redisUrl": {
"label": "Redis URL",
"help": "Native Redis URL used when state backend resolves to redis-native.",
"placeholder": "redis://localhost:6379",
"advanced": true
},
"redisPrefer": {
"label": "Redis transport preference",
"help": "Prefer native Redis, MCP Redis, or allow automatic resolution.",
"placeholder": "auto",
"advanced": true
},
"redisMcpServer": {
"label": "Redis MCP server",
"help": "Explicit MCP server name used for Redis via MCPorter.",
"placeholder": "MCP_DOCKER",
"advanced": true
},
"redisMcpConfigPath": {
"label": "MCPorter config path",
"help": "Optional path to mcporter.json for Redis MCP resolution.",
"placeholder": "~/.mcporter/mcporter.json",
"advanced": true
},
"filesystemFallback": {
"label": "Filesystem fallback",
"help": "Fallback to filesystem when Redis is unavailable.",
"advanced": true
},
"requireSealedToolResultMiddleware": {
"label": "Require sealed middleware",
"help": "Fail plugin startup if agentToolResultMiddleware could not be registered. Only effective after applying the openclaw-workflow trust patch.",
"advanced": true
},
"sealedMaxPreviewBytes": {
"label": "Sealed preview bytes",
"help": "Bytes of a sealed tool result to inline into the model context. Remainder is spooled to artifact store.",
"placeholder": "2048",
"advanced": true
}
}
}