Skip to main content

Module channel_send

Module channel_send 

Source
Expand description

Channel send tool — lets the agent deliver messages to configured channels.

Wraps Channel::send() so the daemon/CLI agent loop can push messages into Telegram, Slack, Discord, etc. The agent receives configured channel names and target IDs from system prompt injection.

Security: The to parameter is optional. When omitted, the configured default_target for the resolved channel key is used. When provided, it must match the configured default_target — arbitrary recipients are rejected. This ensures the model can only send to operator-configured destinations.

Structs§

ChannelSendTool
Tool that sends a message through a configured channel.

Type Aliases§

PerToolChannelHandle
Per-tool channel-map handle — matches zeroclaw_runtime::tools::PerToolChannelHandle. Defined locally so zeroclaw-tools doesn’t depend on zeroclaw-runtime.