OpenClaw Capture
Use this skill when the user wants to send a link, pasted text, image, or video into the local openclaw_capture_workflow backend without modifying that repo, while choosing STT and notification modules by environment.
Behavior
- 1. Normalize the request into the legacy payload contract:
-
chat_id
-
reply_to_message_id
-
request_id
-
source_kind
-
source_url
-
raw_text
-
image_refs
-
platform_hint
-
requested_output_lang
- 2. Immediately tell the user: INLINECODE10
- Dispatch the payload through the wrapper runtime:
CODEBLOCK0
You may also pipe JSON through stdin:
CODEBLOCK1
Routing Rules
- - Keep the payload contract unchanged from the legacy workflow.
- For
mixed, preserve URL, pasted text, and images together. - STT profile resolves as:
- macOS ->
mac_local_first
- non-macOS with
OPENCLAW_CAPTURE_LOCAL_STT_COMMAND ->
local_cli_then_remote
- otherwise ->
remote_only
- - Output modules resolve from
OPENCLAW_CAPTURE_OUTPUTS:
-
telegram
- INLINECODE18
Required Environment
- -
OPENCLAW_CAPTURE_LEGACY_PROJECT_ROOT should point to the local openclaw_capture_workflow checkout when this skill is not being run from the source repo. - INLINECODE21
- INLINECODE22 when INLINECODE23
- INLINECODE24 to override the default routing
- INLINECODE25 for non-mac local CLI transcription fallback
- INLINECODE26
- INLINECODE27
- INLINECODE28
- INLINECODE29
- INLINECODE30
- INLINECODE31
References
Do not manually summarize after dispatch succeeds unless the user explicitly asks for an inline summary.
OpenClaw 捕获
当用户希望将链接、粘贴的文本、图像或视频发送到本地的 openclawcaptureworkflow 后端(无需修改该仓库),并根据环境选择语音转文字和通知模块时,使用此技能。
行为
- 1. 将请求规范化为旧版负载合约:
- chat_id
- reply
tomessage_id
- request_id
- source_kind
- source_url
- raw_text
- image_refs
- platform_hint
- requested
outputlang
- 2. 立即告知用户:已收到,开始处理。
- 通过包装运行时调度负载:
bash
python3 scripts/dispatch_capture.py --payload-file /path/to/payload.json
你也可以通过标准输入管道传输 JSON:
bash
python3 scripts/dispatch_capture.py <
{chatid:-1001,sourcekind:url,source_url:https://example.com}
JSON
路由规则
- - 保持负载合约与旧版工作流一致。
- 对于 mixed 类型,同时保留 URL、粘贴文本和图像。
- 语音转文字配置解析为:
- macOS -> mac
localfirst
- 非 macOS 且设置了 OPENCLAW
CAPTURELOCAL
STTCOMMAND -> local
clithen_remote
- 其他情况 -> remote_only
- - 输出模块从 OPENCLAWCAPTUREOUTPUTS 解析:
- telegram
- feishu
所需环境变量
- - OPENCLAWCAPTURELEGACYPROJECTROOT 应指向本地的 openclawcaptureworkflow 仓库路径(当此技能不在源仓库中运行时使用)。
- OPENCLAWCAPTUREBACKENDMODE=library|http
- OPENCLAWCAPTUREBACKENDURL(当 BACKENDMODE=http 时)
- OPENCLAWCAPTURESTTPROFILE=maclocalfirst|localclithenremote|remoteonly(用于覆盖默认路由)
- OPENCLAWCAPTURELOCALSTTCOMMAND(非 macOS 本地命令行语音转文字回退)
- OPENCLAWCAPTUREMODELPROFILE=openaidirect|aihubmixgateway
- OPENCLAWCAPTUREMODELAPIBASEURL
- OPENCLAWCAPTUREMODELAPIKEY
- OPENCLAWCAPTUREOUTPUTS=telegram,feishu
- OPENCLAWCAPTURETELEGRAMBOTTOKEN
- OPENCLAWCAPTUREFEISHU_WEBHOOK
参考
除非用户明确要求内联摘要,否则在调度成功后不要手动进行总结。