message_chat
Sends an agent's message to a Claude Code chat and returns its reply, so open chats answer live on screen and closed chats wake in their own folder, model and permissions.
Instructions
Send the owner's words to one of their Claude Code chats and return its answer. A chat open in the Claude app gets it as a message from the calling agent and answers in place, live on the owner's screen. A closed chat wakes up with its own folder, model and permissions: live in the Claude app when the relay chat is open there (docs/relay.md), otherwise in the background. show_in_app=true also switches the app to that chat. chat is its title (or words from it) or its id. Pass only words the owner typed.
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": {
"chat": "<chat>",
"text": "<text>"
},
"name": "message_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| text | Yes | ||
| show_in_app | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |