agent_send
Send a message to an existing session and wait for its reply by default, routing to background turns or tmux keystrokes as needed.
Instructions
Send a message to an existing session and, unless wait:false, wait for it to finish answering. Wraps the right mechanism per harness: a resumed background turn for Claude background sessions, keystrokes for a tmux session.
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": "<session>",
"message": "<message>"
},
"name": "agent_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait for the reply (default true for tmux sessions) | |
| message | Yes | ||
| session | Yes | Session id or name | |
| timeout_ms | No | Max wait (default 600000) |