agent_message
Coordinate AI agents by sending and receiving messages for task updates, status reports, alerts, and requests to manage revenue opportunities.
Instructions
Send/receive messages between AI agents for coordination. Honest communication only.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Sending agent name (e.g. SALOMAO, EZEQUIEL) | |
| to | Yes | Receiving agent name (or 'ALL' for broadcast) | |
| type | Yes | ||
| content | Yes | Message content | |
| priority | No | medium |
Implementation Reference
- src/index.ts:493-508 (handler)Implementation of the 'agent_message' tool handler which saves a message object into the DB.
case "agent_message": { const db = loadDB(); const msg: AgentMessage = { from: (args as any).from, to: (args as any).to, type: (args as any).type, content: (args as any).content, timestamp: new Date().toISOString(), priority: (args as any).priority || "medium", }; db.messages.push(msg); saveDB(db); return { content: [{ type: "text", text: `Message sent: ${msg.from} → ${msg.to} [${msg.type}/${msg.priority}]\n${msg.content}` }], }; } - src/index.ts:332-346 (registration)Registration and schema definition of the 'agent_message' tool.
{ name: "agent_message", description: "Send/receive messages between AI agents for coordination. Honest communication only.", inputSchema: { type: "object" as const, required: ["from", "to", "type", "content"], properties: { from: { type: "string", description: "Sending agent name (e.g. SALOMAO, EZEQUIEL)" }, to: { type: "string", description: "Receiving agent name (or 'ALL' for broadcast)" }, type: { type: "string", enum: ["task", "status", "alert", "request"] }, content: { type: "string", description: "Message content" }, priority: { type: "string", enum: ["low", "medium", "high", "critical"], default: "medium" }, }, }, },