send_message
Send messages to a collaboration session to assign tasks, share results, ask questions, and provide updates among agents.
Instructions
Send a message to a collaboration session. Core communication tool.
AUTOMATIC TRIGGERS - Call this when:
Assigning work to an agent (msg_type="task")
Returning findings or completed work (msg_type="result")
Asking for clarification (msg_type="question")
Responding to a question (msg_type="answer")
Providing progress updates (msg_type="update")
Marking a task as done (msg_type="complete")
MESSAGE TYPES:
task: Assign work to an agent
result: Return findings or completed work
question: Ask for clarification
answer: Respond to a question
ack: Acknowledge a message
update: Progress update
artifact: Reference a saved artifact
complete: Mark a task as done
system: System notification (auto-generated)
WORKFLOW POSITION: Use throughout the session for all agent communication.
PARAMETERS:
session_id: Target session
msg_type: Type of message (see above)
content: Message content
to_agent: Target agent ID (or None for broadcast)
from_agent: Your agent ID (required)
metadata: Optional metadata dict
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"msg_type": "<msg_type>",
"content": "<content>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| metadata | No | ||
| msg_type | Yes | ||
| to_agent | No | ||
| from_agent | No | ||
| session_id | Yes |