agent-comm
v1.3.12Agent intercommunication - messaging, channels, shared state, and real-time events
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
comm_register
Register this agent with the communication hub. Returns the agent identity.
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable agent name (2-64 chars, alphanumeric with . _ -) |
capabilities | array | Capability tags (e.g. "code-review", "testing") |
channels | array | Channels to auto-create and join after registration (e.g. ["general"]). Non-existent channels are created on the fly. |
metadata | object | Arbitrary metadata (JSON object) |
skills | array | Skills this agent provides (for skill-based discovery) |
comm_agents
Agent management. Actions: "list" (list agents, filter by status/capability/stuck), "discover" (find by skill/tag), "whoami" (return identity), "heartbeat" (keep alive + optional status), "status" (set status text), "unregister" (go offline).
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform (see enum for options) |
capability | string | [list] Filter by capability keyword |
include_offline | boolean | [list] Include offline agents (default: false) |
skill | string | [discover] Skill ID or name to search for |
status | string | [list] Filter by status |
status_text | string | [heartbeat/status] Status text (max 256 chars, omit or null to clear) |
stuck_threshold_minutes | number | [list] When provided, only returns agents alive but inactive for this many minutes (1-1440) |
tag | string | [discover] Tag to search for across all agent skills |
comm_send
Send a message. Modes: direct (set "to"), channel (set "channel"), broadcast (set "broadcast":true), reply (set "reply_to"), forward (set "forward"). Only one mode at a time.
| Parameter | Type | Description |
|---|---|---|
content * | string | Message content |
ack_required | boolean | Whether the recipient must acknowledge (direct only) |
broadcast | boolean | Send to all online agents |
channel | string | Channel name to post to |
comment | string | Optional comment to add when forwarding |
forward | number | Forward this message ID (must also set "to" or "channel") |
importance | string | Message importance level (default: "normal") |
reply_to | number | Reply to this message ID (auto-threads, auto-routes to same target) |
thread_id | number | Reply to this thread (for direct/channel sends) |
to | string | Recipient agent name or ID (direct message) |
comm_poll
Block until a new inbox message arrives or timeout_ms elapses. Replaces busy-poll loops (comm_inbox + sleep). Returns immediately if the inbox already has matches. Max timeout: 60000ms.
| Parameter | Type | Description |
|---|---|---|
importance | string | Only return messages at this importance level |
limit | number | Max messages (default: 50, max: 500) |
timeout_ms | number | Maximum wait time in ms (default: 5000, max: 60000) |
unread_only | boolean | Only unread messages (default: true) |
comm_inbox
Read messages in your inbox (direct + channel messages). Set thread_id to get a specific thread instead. Filter by importance to find urgent messages cheaply.
| Parameter | Type | Description |
|---|---|---|
importance | string | Only return messages at this importance level |
limit | number | Max messages (default: 50, max: 500) |
thread_id | number | When provided, returns the full thread for this message ID instead of the inbox |
unread_only | boolean | Only unread messages (default: true) |
comm_channel
Channel management. Actions: "create", "list", "join", "leave", "archive", "update", "members", "history".
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform (see enum for options) |
channel | string | Channel name (required for all actions except "list") |
description | string | [create/update] Channel description |
include_archived | boolean | [list] Include archived channels |
limit | number | [history] Max messages (default: 50, max: 500) |
comm_state
Shared key-value state. Actions: "set" (optionally with ttl_seconds for auto-expiry), "get", "list", "delete", "cas" (atomic compare-and-swap). Use ttl_seconds when claiming locks (e.g. playwright instances) so a dead agent does not hold the lock forever.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform (see enum for options) |
expected | string | null | [cas] Expected current value (null if key should not exist) |
key | string | Key name (required for set/get/delete/cas) |
namespace | string | Namespace (default: "default") |
new_value | string | [cas] New value (empty string to delete) |
prefix | string | [list] Filter by key prefix |
ttl_seconds | number | [set] Optional TTL in seconds. Entries past their TTL are lazy-deleted on the next get/list. Recommended for locks. |
value | string | [set] Value (JSON as string if needed) |