{"id":287,"date":"2026-03-21T22:47:26","date_gmt":"2026-03-21T14:47:26","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/tools-lobster\/"},"modified":"2026-03-21T23:08:54","modified_gmt":"2026-03-21T15:08:54","slug":"tools-lobster","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/tools-lobster\/","title":{"rendered":"Lobster"},"content":{"rendered":"<blockquote>\n<p>Typed workflow runtime for OpenClaw \u2014 composable pipelines with approval gates.<\/p>\n<\/blockquote>\n<h1>Lobster<\/h1>\n<p>Lobster \u662f\u4e00\u4e2a\u5de5\u4f5c\u6d41\u5916\u58f3\uff0c\u8ba9 OpenClaw \u80fd\u591f\u5c06\u591a\u6b65\u9aa4\u5de5\u5177\u5e8f\u5217\u4f5c\u4e3a\u5355\u4e2a\u786e\u5b9a\u6027\u64cd\u4f5c\u8fd0\u884c\uff0c\u5e76\u5e26\u6709\u663e\u5f0f\u5ba1\u6279\u68c0\u67e5\u70b9\u3002<\/p>\n<h2>\u4eae\u70b9<\/h2>\n<p>\u4f60\u7684\u52a9\u624b\u53ef\u4ee5\u6784\u5efa\u7ba1\u7406\u81ea\u8eab\u7684\u5de5\u5177\u3002\u8bf7\u6c42\u4e00\u4e2a\u5de5\u4f5c\u6d41\uff0c30 \u5206\u949f\u540e\u4f60\u5c31\u6709\u4e86\u4e00\u4e2a CLI \u548c\u4f5c\u4e3a\u5355\u6b21\u8c03\u7528\u8fd0\u884c\u7684\u7ba1\u9053\u3002Lobster \u662f\u7f3a\u5931\u7684\u90a3\u4e00\u5757\uff1a\u786e\u5b9a\u6027\u7ba1\u9053\u3001\u663e\u5f0f\u5ba1\u6279\u548c\u53ef\u6062\u590d\u72b6\u6001\u3002<\/p>\n<h2>\u4e3a\u4ec0\u4e48<\/h2>\n<p>\u5982\u4eca\uff0c\u590d\u6742\u7684\u5de5\u4f5c\u6d41\u9700\u8981\u591a\u6b21\u6765\u56de\u7684\u5de5\u5177\u8c03\u7528\u3002\u6bcf\u6b21\u8c03\u7528\u90fd\u6d88\u8017 token\uff0cLLM \u5fc5\u987b\u7f16\u6392\u6bcf\u4e00\u6b65\u3002Lobster \u5c06\u8fd9\u79cd\u7f16\u6392\u79fb\u5165\u7c7b\u578b\u5316\u8fd0\u884c\u65f6\uff1a<\/p>\n<ul>\n<li><strong>\u4e00\u6b21\u8c03\u7528\u4ee3\u66ff\u591a\u6b21<\/strong>\uff1aOpenClaw \u8fd0\u884c\u4e00\u6b21 Lobster \u5de5\u5177\u8c03\u7528\u5e76\u83b7\u5f97\u7ed3\u6784\u5316\u7ed3\u679c\u3002<\/li>\n<li><strong>\u5185\u7f6e\u5ba1\u6279<\/strong>\uff1a\u526f\u4f5c\u7528\uff08\u53d1\u9001\u90ae\u4ef6\u3001\u53d1\u5e03\u8bc4\u8bba\uff09\u4f1a\u6682\u505c\u5de5\u4f5c\u6d41\uff0c\u76f4\u5230\u660e\u786e\u6279\u51c6\u3002<\/li>\n<li><strong>\u53ef\u6062\u590d<\/strong>\uff1a\u6682\u505c\u7684\u5de5\u4f5c\u6d41\u8fd4\u56de\u4e00\u4e2a\u4ee4\u724c\uff1b\u6279\u51c6\u5e76\u6062\u590d\u800c\u65e0\u9700\u91cd\u65b0\u8fd0\u884c\u6240\u6709\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<h2>\u4e3a\u4ec0\u4e48\u7528 DSL \u800c\u4e0d\u662f\u666e\u901a\u7a0b\u5e8f\uff1f<\/h2>\n<p>Lobster \u6545\u610f\u5f88\u5c0f\u3002\u76ee\u6807\u4e0d\u662f&#8221;\u4e00\u79cd\u65b0\u8bed\u8a00&#8221;\uff0c\u800c\u662f\u4e00\u4e2a\u53ef\u9884\u6d4b\u7684\u3001AI \u53cb\u597d\u7684\u7ba1\u9053\u89c4\u8303\uff0c\u5177\u6709\u4e00\u6d41\u7684\u5ba1\u6279\u548c\u6062\u590d\u4ee4\u724c\u3002<\/p>\n<ul>\n<li><strong>\u5185\u7f6e\u6279\u51c6\/\u6062\u590d<\/strong>\uff1a\u666e\u901a\u7a0b\u5e8f\u53ef\u4ee5\u63d0\u793a\u4eba\u7c7b\uff0c\u4f46\u5b83\u65e0\u6cd5<em>\u6682\u505c\u548c\u6062\u590d<\/em>\u5e76\u5e26\u6709\u6301\u4e45\u4ee4\u724c\uff0c\u9664\u975e\u4f60\u81ea\u5df1\u53d1\u660e\u90a3\u4e2a\u8fd0\u884c\u65f6\u3002<\/li>\n<li><strong>\u786e\u5b9a\u6027 + \u53ef\u5ba1\u8ba1\u6027<\/strong>\uff1a\u7ba1\u9053\u662f\u6570\u636e\uff0c\u6240\u4ee5\u5b83\u4eec\u6613\u4e8e\u8bb0\u5f55\u3001\u6bd4\u8f83\u3001\u91cd\u653e\u548c\u5ba1\u67e5\u3002<\/li>\n<li><strong>AI \u7684\u53d7\u9650\u8868\u9762<\/strong>\uff1a\u5fae\u5c0f\u7684\u8bed\u6cd5 + JSON \u7ba1\u9053\u51cf\u5c11\u4e86&#8221;\u521b\u9020\u6027&#8221;\u4ee3\u7801\u8def\u5f84\uff0c\u4f7f\u9a8c\u8bc1\u53d8\u5f97\u73b0\u5b9e\u53ef\u884c\u3002<\/li>\n<li><strong>\u5185\u7f6e\u5b89\u5168\u7b56\u7565<\/strong>\uff1a\u8d85\u65f6\u3001\u8f93\u51fa\u4e0a\u9650\u3001\u6c99\u7bb1\u68c0\u67e5\u548c\u767d\u540d\u5355\u7531\u8fd0\u884c\u65f6\u5f3a\u5236\u6267\u884c\uff0c\u800c\u4e0d\u662f\u6bcf\u4e2a\u811a\u672c\u3002<\/li>\n<li><strong>\u4ecd\u7136\u53ef\u7f16\u7a0b<\/strong>\uff1a\u6bcf\u4e2a\u6b65\u9aa4\u90fd\u53ef\u4ee5\u8c03\u7528\u4efb\u4f55 CLI \u6216\u811a\u672c\u3002\u5982\u679c\u4f60\u60f3\u8981 JS\/TS\uff0c\u53ef\u4ee5\u4ece\u4ee3\u7801\u751f\u6210 <code>.lobster<\/code> \u6587\u4ef6\u3002<\/li>\n<\/ul>\n<h2>\u5de5\u4f5c\u539f\u7406<\/h2>\n<p>OpenClaw \u4ee5<strong>\u5de5\u5177\u6a21\u5f0f<\/strong>\u542f\u52a8\u672c\u5730 <code>lobster<\/code> CLI\uff0c\u5e76\u4ece stdout \u89e3\u6790 JSON \u4fe1\u5c01\u3002<br \/>\n\u5982\u679c\u7ba1\u9053\u6682\u505c\u7b49\u5f85\u5ba1\u6279\uff0c\u5de5\u5177\u4f1a\u8fd4\u56de\u4e00\u4e2a <code>resumeToken<\/code>\uff0c\u4ee5\u4fbf\u4f60\u7a0d\u540e\u7ee7\u7eed\u3002<\/p>\n<h2>\u6a21\u5f0f\uff1a\u5c0f\u578b CLI + JSON \u7ba1\u9053 + \u5ba1\u6279<\/h2>\n<p>\u6784\u5efa\u8f93\u51fa JSON \u7684\u5c0f\u547d\u4ee4\uff0c\u7136\u540e\u5c06\u5b83\u4eec\u94fe\u63a5\u6210\u5355\u4e2a Lobster \u8c03\u7528\u3002\uff08\u4e0b\u9762\u662f\u793a\u4f8b\u547d\u4ee4\u540d\u79f0\u2014\u2014\u66ff\u6362\u6210\u4f60\u81ea\u5df1\u7684\u3002\uff09<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\ninbox list &#8211;json<br \/>\ninbox categorize &#8211;json<br \/>\ninbox apply &#8211;json<\/p>\n<pre><code>\n```json  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  &quot;action&quot;: &quot;run&quot;,\n  &quot;pipeline&quot;: &quot;exec --json --shell 'inbox list --json' | exec --stdin json --shell 'inbox categorize --json' | exec --stdin json --shell 'inbox apply --json' | approve --preview-from-stdin --limit 5 --prompt 'Apply changes?'&quot;,\n  &quot;timeoutMs&quot;: 30000\n}\n<\/code><\/pre>\n<p>\u5982\u679c\u7ba1\u9053\u8bf7\u6c42\u5ba1\u6279\uff0c\u4f7f\u7528\u4ee4\u724c\u6062\u590d\uff1a<\/p>\n<p>&#8220;`json  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  &#8220;action&#8221;: &#8220;resume&#8221;,<br \/>\n  &#8220;token&#8221;: &#8220;&#8221;,<br \/>\n  &#8220;approve&#8221;: true<br \/>\n}<\/p>\n<pre><code>\nAI \u89e6\u53d1\u5de5\u4f5c\u6d41\uff1bLobster \u6267\u884c\u6b65\u9aa4\u3002\u5ba1\u6279\u5173\u5361\u4f7f\u526f\u4f5c\u7528\u663e\u5f0f\u4e14\u53ef\u5ba1\u8ba1\u3002\n\n\u793a\u4f8b\uff1a\u5c06\u8f93\u5165\u9879\u6620\u5c04\u5230\u5de5\u5177\u8c03\u7528\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\ngog.gmail.search --query 'newer_than:1d' \n  | openclaw.invoke --tool message --action send --each --item-key message --args-json '{&quot;provider&quot;:&quot;telegram&quot;,&quot;to&quot;:&quot;...&quot;}'\n<\/code><\/pre>\n<h2>\u7eaf JSON \u7684 LLM \u6b65\u9aa4\uff08llm-task\uff09<\/h2>\n<p>\u5bf9\u4e8e\u9700\u8981<strong>\u7ed3\u6784\u5316 LLM \u6b65\u9aa4<\/strong>\u7684\u5de5\u4f5c\u6d41\uff0c\u542f\u7528\u53ef\u9009\u7684<br \/>\n<code>llm-task<\/code> \u63d2\u4ef6\u5de5\u5177\u5e76\u4ece Lobster \u8c03\u7528\u5b83\u3002\u8fd9\u4fdd\u6301\u4e86\u5de5\u4f5c\u6d41\u7684<br \/>\n\u786e\u5b9a\u6027\uff0c\u540c\u65f6\u4ecd\u7136\u5141\u8bb8\u4f60\u4f7f\u7528\u6a21\u578b\u8fdb\u884c\u5206\u7c7b\/\u6458\u8981\/\u8d77\u8349\u3002<\/p>\n<p>\u542f\u7528\u5de5\u5177\uff1a<\/p>\n<p>&#8220;`json  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  &#8220;plugins&#8221;: {<br \/>\n    &#8220;entries&#8221;: {<br \/>\n      &#8220;llm-task&#8221;: { &#8220;enabled&#8221;: true }<br \/>\n    }<br \/>\n  },<br \/>\n  &#8220;agents&#8221;: {<br \/>\n    &#8220;list&#8221;: [<br \/>\n      {<br \/>\n        &#8220;id&#8221;: &#8220;main&#8221;,<br \/>\n        &#8220;tools&#8221;: { &#8220;allow&#8221;: [&#8220;llm-task&#8221;] }<br \/>\n      }<br \/>\n    ]<br \/>\n  }<br \/>\n}<\/p>\n<pre><code>\n\u5728\u7ba1\u9053\u4e2d\u4f7f\u7528\u5b83\uff1a\n\n```lobster  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw.invoke --tool llm-task --action json --args-json '{\n  &quot;prompt&quot;: &quot;Given the input email, return intent and draft.&quot;,\n  &quot;input&quot;: { &quot;subject&quot;: &quot;Hello&quot;, &quot;body&quot;: &quot;Can you help?&quot; },\n  &quot;schema&quot;: {\n    &quot;type&quot;: &quot;object&quot;,\n    &quot;properties&quot;: {\n      &quot;intent&quot;: { &quot;type&quot;: &quot;string&quot; },\n      &quot;draft&quot;: { &quot;type&quot;: &quot;string&quot; }\n    },\n    &quot;required&quot;: [&quot;intent&quot;, &quot;draft&quot;],\n    &quot;additionalProperties&quot;: false\n  }\n}'\n<\/code><\/pre>\n<p>\u53c2\u89c1 <a href=\"\/tools\/llm-task\">LLM Task<\/a> \u4e86\u89e3\u8be6\u60c5\u548c\u914d\u7f6e\u9009\u9879\u3002<\/p>\n<h2>\u5de5\u4f5c\u6d41\u6587\u4ef6\uff08.lobster\uff09<\/h2>\n<p>Lobster \u53ef\u4ee5\u8fd0\u884c\u5305\u542b <code>name<\/code>\u3001<code>args<\/code>\u3001<code>steps<\/code>\u3001<code>env<\/code>\u3001<code>condition<\/code> \u548c <code>approval<\/code> \u5b57\u6bb5\u7684 YAML\/JSON \u5de5\u4f5c\u6d41\u6587\u4ef6\u3002\u5728 OpenClaw \u5de5\u5177\u8c03\u7528\u4e2d\uff0c\u5c06 <code>pipeline<\/code> \u8bbe\u7f6e\u4e3a\u6587\u4ef6\u8def\u5f84\u3002<\/p>\n<p>&#8220;`yaml  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nname: inbox-triage<br \/>\nargs:<br \/>\n  tag:<br \/>\n    default: &#8220;family&#8221;<br \/>\nsteps:<br \/>\n  &#8211; id: collect<br \/>\n    command: inbox list &#8211;json<br \/>\n  &#8211; id: categorize<br \/>\n    command: inbox categorize &#8211;json<br \/>\n    stdin: $collect.stdout<br \/>\n  &#8211; id: approve<br \/>\n    command: inbox apply &#8211;approve<br \/>\n    stdin: $categorize.stdout<br \/>\n    approval: required<br \/>\n  &#8211; id: execute<br \/>\n    command: inbox apply &#8211;execute<br \/>\n    stdin: $categorize.stdout<br \/>\n    condition: $approve.approved<\/p>\n<pre><code>\n\u6ce8\u610f\u4e8b\u9879\uff1a\n\n* `stdin: $step.stdout` \u548c `stdin: $step.json` \u4f20\u9012\u524d\u4e00\u6b65\u9aa4\u7684\u8f93\u51fa\u3002\n* `condition`\uff08\u6216 `when`\uff09\u53ef\u4ee5\u6839\u636e `$step.approved` \u63a7\u5236\u6b65\u9aa4\u3002\n\n## \u5b89\u88c5 Lobster\n\n\u5728\u8fd0\u884c OpenClaw Gateway \u7f51\u5173\u7684**\u540c\u4e00\u4e3b\u673a**\u4e0a\u5b89\u88c5 Lobster CLI\uff08\u53c2\u89c1 [Lobster \u4ed3\u5e93](https:\/\/github.com\/openclaw\/lobster)\uff09\uff0c\u5e76\u786e\u4fdd `lobster` \u5728 `PATH` \u4e2d\u3002\n\u5982\u679c\u4f60\u60f3\u4f7f\u7528\u81ea\u5b9a\u4e49\u4e8c\u8fdb\u5236\u4f4d\u7f6e\uff0c\u5728\u5de5\u5177\u8c03\u7528\u4e2d\u4f20\u9012**\u7edd\u5bf9**\u8def\u5f84 `lobsterPath`\u3002\n\n## \u542f\u7528\u5de5\u5177\n\nLobster \u662f\u4e00\u4e2a**\u53ef\u9009**\u7684\u63d2\u4ef6\u5de5\u5177\uff08\u9ed8\u8ba4\u672a\u542f\u7528\uff09\u3002\n\n\u63a8\u8350\uff08\u9644\u52a0\uff0c\u5b89\u5168\uff09\uff1a\n\n```json  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  &quot;tools&quot;: {\n    &quot;alsoAllow&quot;: [&quot;lobster&quot;]\n  }\n}\n<\/code><\/pre>\n<p>\u6216\u6bcf\u4e2a\u667a\u80fd\u4f53\uff1a<\/p>\n<p>&#8220;`json  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  &#8220;agents&#8221;: {<br \/>\n    &#8220;list&#8221;: [<br \/>\n      {<br \/>\n        &#8220;id&#8221;: &#8220;main&#8221;,<br \/>\n        &#8220;tools&#8221;: {<br \/>\n          &#8220;alsoAllow&#8221;: [&#8220;lobster&#8221;]<br \/>\n        }<br \/>\n      }<br \/>\n    ]<br \/>\n  }<br \/>\n}<\/p>\n<pre><code>\n\u907f\u514d\u4f7f\u7528 `tools.allow: [&quot;lobster&quot;]`\uff0c\u9664\u975e\u4f60\u6253\u7b97\u5728\u9650\u5236\u6027\u767d\u540d\u5355\u6a21\u5f0f\u4e0b\u8fd0\u884c\u3002\n\n\u6ce8\u610f\uff1a\u767d\u540d\u5355\u5bf9\u4e8e\u53ef\u9009\u63d2\u4ef6\u662f\u81ea\u613f\u52a0\u5165\u7684\u3002\u5982\u679c\u4f60\u7684\u767d\u540d\u5355\u53ea\u5305\u542b\n\u63d2\u4ef6\u5de5\u5177\uff08\u5982 `lobster`\uff09\uff0cOpenClaw \u4f1a\u4fdd\u6301\u6838\u5fc3\u5de5\u5177\u542f\u7528\u3002\u8981\u9650\u5236\u6838\u5fc3\n\u5de5\u5177\uff0c\u4e5f\u8981\u5728\u767d\u540d\u5355\u4e2d\u5305\u542b\u4f60\u60f3\u8981\u7684\u6838\u5fc3\u5de5\u5177\u6216\u7ec4\u3002\n\n## \u793a\u4f8b\uff1a\u90ae\u4ef6\u5206\u7c7b\n\n\u4e0d\u4f7f\u7528 Lobster\uff1a\n\n<\/code><\/pre>\n<p>\u7528\u6237\uff1a&#8221;\u68c0\u67e5\u6211\u7684\u90ae\u4ef6\u5e76\u8d77\u8349\u56de\u590d&#8221;<br \/>\n\u2192 openclaw \u8c03\u7528 gmail.list<br \/>\n\u2192 LLM \u603b\u7ed3<br \/>\n\u2192 \u7528\u6237\uff1a&#8221;\u7ed9 #2 \u548c #5 \u8d77\u8349\u56de\u590d&#8221;<br \/>\n\u2192 LLM \u8d77\u8349<br \/>\n\u2192 \u7528\u6237\uff1a&#8221;\u53d1\u9001 #2&#8243;<br \/>\n\u2192 openclaw \u8c03\u7528 gmail.send<br \/>\n\uff08\u6bcf\u5929\u91cd\u590d\uff0c\u4e0d\u8bb0\u5f97\u5df2\u5206\u7c7b\u7684\u5185\u5bb9\uff09<\/p>\n<pre><code>\n\u4f7f\u7528 Lobster\uff1a\n\n```json  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  &quot;action&quot;: &quot;run&quot;,\n  &quot;pipeline&quot;: &quot;email.triage --limit 20&quot;,\n  &quot;timeoutMs&quot;: 30000\n}\n<\/code><\/pre>\n<p>\u8fd4\u56de\u4e00\u4e2a JSON \u4fe1\u5c01\uff08\u5df2\u622a\u65ad\uff09\uff1a<\/p>\n<p>&#8220;`json  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  &#8220;ok&#8221;: true,<br \/>\n  &#8220;status&#8221;: &#8220;needs_approval&#8221;,<br \/>\n  &#8220;output&#8221;: [{ &#8220;summary&#8221;: &#8220;5 need replies, 2 need action&#8221; }],<br \/>\n  &#8220;requiresApproval&#8221;: {<br \/>\n    &#8220;type&#8221;: &#8220;approval_request&#8221;,<br \/>\n    &#8220;prompt&#8221;: &#8220;Send 2 draft replies?&#8221;,<br \/>\n    &#8220;items&#8221;: [],<br \/>\n    &#8220;resumeToken&#8221;: &#8220;&#8230;&#8221;<br \/>\n  }<br \/>\n}<\/p>\n<pre><code>\n\u7528\u6237\u6279\u51c6 \u2192 \u6062\u590d\uff1a\n\n```json  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  &quot;action&quot;: &quot;resume&quot;,\n  &quot;token&quot;: &quot;&lt;resumeToken&gt;&quot;,\n  &quot;approve&quot;: true\n}\n<\/code><\/pre>\n<p>\u4e00\u4e2a\u5de5\u4f5c\u6d41\u3002\u786e\u5b9a\u6027\u3002\u5b89\u5168\u3002<\/p>\n<h2>\u5de5\u5177\u53c2\u6570<\/h2>\n<h3><code>run<\/code><\/h3>\n<p>\u4ee5\u5de5\u5177\u6a21\u5f0f\u8fd0\u884c\u7ba1\u9053\u3002<\/p>\n<p>&#8220;`json  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  &#8220;action&#8221;: &#8220;run&#8221;,<br \/>\n  &#8220;pipeline&#8221;: &#8220;gog.gmail.search &#8211;query &#8216;newer_than:1d&#8217; | email.triage&#8221;,<br \/>\n  &#8220;cwd&#8221;: &#8220;\/path\/to\/workspace&#8221;,<br \/>\n  &#8220;timeoutMs&#8221;: 30000,<br \/>\n  &#8220;maxStdoutBytes&#8221;: 512000<br \/>\n}<\/p>\n<pre><code>\n\u4f7f\u7528\u53c2\u6570\u8fd0\u884c\u5de5\u4f5c\u6d41\u6587\u4ef6\uff1a\n\n```json  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  &quot;action&quot;: &quot;run&quot;,\n  &quot;pipeline&quot;: &quot;\/path\/to\/inbox-triage.lobster&quot;,\n  &quot;argsJson&quot;: &quot;{&quot;tag&quot;:&quot;family&quot;}&quot;\n}\n<\/code><\/pre>\n<h3><code>resume<\/code><\/h3>\n<p>\u5728\u5ba1\u6279\u540e\u7ee7\u7eed\u6682\u505c\u7684\u5de5\u4f5c\u6d41\u3002<\/p>\n<p><code>json  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n{<br \/>\n  \"action\": \"resume\",<br \/>\n  \"token\": \"&lt;resumeToken&gt;\",<br \/>\n  \"approve\": true<br \/>\n}<\/code><\/p>\n<h3>\u53ef\u9009\u8f93\u5165<\/h3>\n<ul>\n<li><code>lobsterPath<\/code>\uff1aLobster \u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84\uff08\u7701\u7565\u5219\u4f7f\u7528 <code>PATH<\/code>\uff09\u3002<\/li>\n<li><code>cwd<\/code>\uff1a\u7ba1\u9053\u7684\u5de5\u4f5c\u76ee\u5f55\uff08\u9ed8\u8ba4\u4e3a\u5f53\u524d\u8fdb\u7a0b\u5de5\u4f5c\u76ee\u5f55\uff09\u3002<\/li>\n<li><code>timeoutMs<\/code>\uff1a\u5982\u679c\u5b50\u8fdb\u7a0b\u8d85\u8fc7\u6b64\u6301\u7eed\u65f6\u95f4\u5219\u7ec8\u6b62\uff08\u9ed8\u8ba4\uff1a20000\uff09\u3002<\/li>\n<li><code>maxStdoutBytes<\/code>\uff1a\u5982\u679c stdout \u8d85\u8fc7\u6b64\u5927\u5c0f\u5219\u7ec8\u6b62\u5b50\u8fdb\u7a0b\uff08\u9ed8\u8ba4\uff1a512000\uff09\u3002<\/li>\n<li><code>argsJson<\/code>\uff1a\u4f20\u9012\u7ed9 <code>lobster run --args-json<\/code> \u7684 JSON \u5b57\u7b26\u4e32\uff08\u4ec5\u9650\u5de5\u4f5c\u6d41\u6587\u4ef6\uff09\u3002<\/li>\n<\/ul>\n<h2>\u8f93\u51fa\u4fe1\u5c01<\/h2>\n<p>Lobster \u8fd4\u56de\u4e00\u4e2a\u5177\u6709\u4e09\u79cd\u72b6\u6001\u4e4b\u4e00\u7684 JSON \u4fe1\u5c01\uff1a<\/p>\n<ul>\n<li><code>ok<\/code> \u2192 \u6210\u529f\u5b8c\u6210<\/li>\n<li><code>needs_approval<\/code> \u2192 \u5df2\u6682\u505c\uff1b\u9700\u8981 <code>requiresApproval.resumeToken<\/code> \u624d\u80fd\u6062\u590d<\/li>\n<li><code>cancelled<\/code> \u2192 \u660e\u786e\u62d2\u7edd\u6216\u53d6\u6d88<\/li>\n<\/ul>\n<p>\u5de5\u5177\u5728 <code>content<\/code>\uff08\u683c\u5f0f\u5316 JSON\uff09\u548c <code>details<\/code>\uff08\u539f\u59cb\u5bf9\u8c61\uff09\u4e2d\u90fd\u663e\u793a\u4fe1\u5c01\u3002<\/p>\n<h2>\u5ba1\u6279<\/h2>\n<p>\u5982\u679c\u5b58\u5728 <code>requiresApproval<\/code>\uff0c\u68c0\u67e5\u63d0\u793a\u5e76\u51b3\u5b9a\uff1a<\/p>\n<ul>\n<li><code>approve: true<\/code> \u2192 \u6062\u590d\u5e76\u7ee7\u7eed\u526f\u4f5c\u7528<\/li>\n<li><code>approve: false<\/code> \u2192 \u53d6\u6d88\u5e76\u7ec8\u7ed3\u5de5\u4f5c\u6d41<\/li>\n<\/ul>\n<p>\u4f7f\u7528 <code>approve --preview-from-stdin --limit N<\/code> \u5c06 JSON \u9884\u89c8\u9644\u52a0\u5230\u5ba1\u6279\u8bf7\u6c42\uff0c\u65e0\u9700\u81ea\u5b9a\u4e49 jq\/heredoc \u7c98\u5408\u4ee3\u7801\u3002\u6062\u590d\u4ee4\u724c\u73b0\u5728\u5f88\u7d27\u51d1\uff1aLobster \u5728\u5176\u72b6\u6001\u76ee\u5f55\u4e0b\u5b58\u50a8\u5de5\u4f5c\u6d41\u6062\u590d\u72b6\u6001\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u5c0f\u4ee4\u724c\u952e\u3002<\/p>\n<h2>OpenProse<\/h2>\n<p>OpenProse \u4e0e Lobster \u914d\u5408\u826f\u597d\uff1a\u4f7f\u7528 <code>\/prose<\/code> \u7f16\u6392\u591a\u667a\u80fd\u4f53\u51c6\u5907\uff0c\u7136\u540e\u8fd0\u884c Lobster \u7ba1\u9053\u8fdb\u884c\u786e\u5b9a\u6027\u5ba1\u6279\u3002\u5982\u679c Prose \u7a0b\u5e8f\u9700\u8981 Lobster\uff0c\u901a\u8fc7 <code>tools.subagents.tools<\/code> \u4e3a\u5b50\u667a\u80fd\u4f53\u5141\u8bb8 <code>lobster<\/code> \u5de5\u5177\u3002\u53c2\u89c1 <a href=\"\/prose\">OpenProse<\/a>\u3002<\/p>\n<h2>\u5b89\u5168<\/h2>\n<ul>\n<li><strong>\u4ec5\u9650\u672c\u5730\u5b50\u8fdb\u7a0b<\/strong> \u2014 \u63d2\u4ef6\u672c\u8eab\u4e0d\u8fdb\u884c\u7f51\u7edc\u8c03\u7528\u3002<\/li>\n<li><strong>\u65e0\u5bc6\u94a5<\/strong> \u2014 Lobster \u4e0d\u7ba1\u7406 OAuth\uff1b\u5b83\u8c03\u7528\u7ba1\u7406 OAuth \u7684 OpenClaw \u5de5\u5177\u3002<\/li>\n<li><strong>\u6c99\u7bb1\u611f\u77e5<\/strong> \u2014 \u5f53\u5de5\u5177\u4e0a\u4e0b\u6587\u5904\u4e8e\u6c99\u7bb1\u9694\u79bb\u72b6\u6001\u65f6\u7981\u7528\u3002<\/li>\n<li><strong>\u52a0\u56fa<\/strong> \u2014 \u5982\u679c\u6307\u5b9a\uff0c<code>lobsterPath<\/code> \u5fc5\u987b\u662f\u7edd\u5bf9\u8def\u5f84\uff1b\u5f3a\u5236\u6267\u884c\u8d85\u65f6\u548c\u8f93\u51fa\u4e0a\u9650\u3002<\/li>\n<\/ul>\n<h2>\u6545\u969c\u6392\u9664<\/h2>\n<ul>\n<li><strong><code>lobster subprocess timed out<\/code><\/strong> \u2192 \u589e\u52a0 <code>timeoutMs<\/code>\uff0c\u6216\u62c6\u5206\u957f\u7ba1\u9053\u3002<\/li>\n<li><strong><code>lobster output exceeded maxStdoutBytes<\/code><\/strong> \u2192 \u63d0\u9ad8 <code>maxStdoutBytes<\/code> \u6216\u51cf\u5c11\u8f93\u51fa\u5927\u5c0f\u3002<\/li>\n<li><strong><code>lobster returned invalid JSON<\/code><\/strong> \u2192 \u786e\u4fdd\u7ba1\u9053\u4ee5\u5de5\u5177\u6a21\u5f0f\u8fd0\u884c\u5e76\u53ea\u6253\u5370 JSON\u3002<\/li>\n<li><strong><code>lobster failed (code \u2026)<\/code><\/strong> \u2192 \u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u76f8\u540c\u7684\u7ba1\u9053\u4ee5\u68c0\u67e5 stderr\u3002<\/li>\n<\/ul>\n<h2>\u4e86\u89e3\u66f4\u591a<\/h2>\n<ul>\n<li><a href=\"\/tools\/plugin\">\u63d2\u4ef6<\/a><\/li>\n<li><a href=\"\/plugins\/agent-tools\">\u63d2\u4ef6\u5de5\u5177\u5f00\u53d1<\/a><\/li>\n<\/ul>\n<h2>\u6848\u4f8b\u7814\u7a76\uff1a\u793e\u533a\u5de5\u4f5c\u6d41<\/h2>\n<p>\u4e00\u4e2a\u516c\u5f00\u793a\u4f8b\uff1a\u4e00\u4e2a&#8221;\u7b2c\u4e8c\u5927\u8111&#8221; CLI + Lobster \u7ba1\u9053\uff0c\u7ba1\u7406\u4e09\u4e2a Markdown \u5e93\uff08\u4e2a\u4eba\u3001\u4f34\u4fa3\u3001\u5171\u4eab\uff09\u3002CLI \u4e3a\u7edf\u8ba1\u3001\u6536\u4ef6\u7bb1\u5217\u8868\u548c\u8fc7\u65f6\u626b\u63cf\u8f93\u51fa JSON\uff1bLobster \u5c06\u8fd9\u4e9b\u547d\u4ee4\u94fe\u63a5\u6210 <code>weekly-review<\/code>\u3001<code>inbox-triage<\/code>\u3001<code>memory-consolidation<\/code> \u548c <code>shared-task-sync<\/code> \u7b49\u5de5\u4f5c\u6d41\uff0c\u6bcf\u4e2a\u90fd\u6709\u5ba1\u6279\u5173\u5361\u3002AI \u5728\u53ef\u7528\u65f6\u5904\u7406\u5224\u65ad\uff08\u5206\u7c7b\uff09\uff0c\u4e0d\u53ef\u7528\u65f6\u56de\u9000\u5230\u786e\u5b9a\u6027\u89c4\u5219\u3002<\/p>\n<ul>\n<li>\u5e16\u5b50\uff1a<a href=\"https:\/\/x.com\/plattenschieber\/status\/2014508656335770033\">https:\/\/x.com\/plattenschieber\/status\/2014508656335770033<\/a><\/li>\n<li>\u4ed3\u5e93\uff1a<a href=\"https:\/\/github.com\/bloomedai\/brain-cli\">https:\/\/github.com\/bloomedai\/brain-cli<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Typed workflow runtime for OpenClaw \u2014 composable pipeli [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-287","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=287"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/287\/revisions"}],"predecessor-version":[{"id":582,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/287\/revisions\/582"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}