OpenClawSkills
GitHub
ツール & スキル • 5 分で読む

Agent Send

直接 `openclaw agent` CLI 実行(オプションの配信)

''openclaw agent'' は、インバウンドチャットメッセージなしで単一のエージェントターンを実行します。

デフォルトでは''Gateway 経由''で実行されます;''--local'' を追加して、現在のマシンで埋め込み

ランタイムを強制的に使用します。

Tutorial.step

Behavior

- Required: ''--message <text>''

- セッション選択:

- ''--to <dest>'' はセッションキーを派生(グループ/チャンネルターゲットは分離を維持;直接チャットは ''main'' に折りたたむ)、''または''

- ''--session-id <id>'' は ID で既存のセッションを再利用、''または''

- ''--agent <id>'' は設定されたエージェントを直接ターゲット(そのエージェントの ''main'' セッションキーを使用)

- 通常のインバウンド返信と同じ埋め込みエージェントランタイムを実行。

- 思考/詳細フラグはセッションストアに永続化されます。

- Output:

- デフォルト:返信テキストを出力(''MEDIA:<url>'' 行を含む)

- ''--json'':構造化ペイロード + メタデータを出力

- ''--deliver'' + ''--channel'' でチャンネルへのオプション配信(ターゲット形式は ''openclaw message --target'' に一致)。

- ''--reply-channel''/''--reply-to''/''--reply-account'' を使用してセッションを変更せずに配信をオーバーライド。

Gateway に到達できない場合、CLI は埋め込みローカル実行にフォールバックします。

Tutorial.step

Examples

Bash
openclaw agent --to +15555550123 --message "status update"
openclaw agent --agent ops --message "Summarize logs"
openclaw agent --session-id 1234 --message "Summarize inbox" --thinking medium
openclaw agent --to +15555550123 --message "Trace logs" --verbose on --json
openclaw agent --to +15555550123 --message "Summon reply" --deliver
openclaw agent --agent ops --message "Generate report" --deliver --reply-channel slack --reply-to "#reports"
Tutorial.step

フラグ

- ''--local'':ローカルで実行(シェルにモデルプロバイダー API キーが必要)

- ''--deliver'':選択したチャンネルに返信を送信

- ''--channel'':配信チャンネル(''whatsapp|telegram|discord|googlechat|slack|signal|imessage''、デフォルト:''whatsapp'')

- ''--reply-to'':配信ターゲットオーバーライド

- ''--reply-channel'':配信チャンネルオーバーライド

- ''--reply-account'':配信アカウント ID オーバーライド

- ''--thinking <off|minimal|low|medium|high|xhigh>'':思考レベルを永続化(GPT-5.2 + Codex モデルのみ)

- ''--verbose <on|full|off>'':詳細レベルを永続化

- ''--timeout <seconds>'':エージェントタイムアウトをオーバーライド

- ''--json'':構造化 JSON を出力