send_message
Send messages to another Claude Code session to coordinate tasks, such as notifying it to pull latest changes after a PR merge.
Instructions
Send a message to a specific Claude Code session.
Use this to communicate with another Claude instance working on a related task. The message will be injected into the target session.
Args: target_task_id: Task ID of the target session (e.g., "task-b"). content: The message content to send. source_task_id: Your current task ID (the sender). priority: Message priority: "normal", "high", or "urgent".
Returns: Result indicating whether the message was sent.
Example: >>> send_message("task-b", "PR merged to main, please pull latest", "task-a") SendMessageResult(success=True, message_id="msg_abc123", ...)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| priority | No | normal | |
| source_task_id | Yes | ||
| target_task_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Human-readable status message | |
| success | Yes | Whether the message was sent | |
| message_id | No | ID of the sent message | |
| delivered_to | No | List of task IDs message was delivered to | |
| target_task_id | No | Target task ID |