send_and_wait
Send a message to a Claude Code session and retrieve its full response by polling until completion.
Instructions
Send a message to a Claude Code session and wait for the full response.
Polls until the session produces a result event (turn complete), then returns the assistant's response. Use this when you need the other session's answer.
Args: session_id: The session ID to send to. message: The message text to send. timeout: Max seconds to wait for a response (default 120). poll_interval: Seconds between polls (default 1.5).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| message | Yes | ||
| timeout | No | ||
| poll_interval | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |