Message a Claude Code session
send_messageSends a message to a Claude Code session, live or headless, and optionally waits up to 45 seconds for the reply so you can get an answer in one call.
Instructions
Send a message to a Claude Code session, live or headless. A connected live window gets it within seconds. A headless session answers in its next turn. Give wait_seconds to get the answer in this call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The message. | |
| session_id | Yes | The id from list_sessions or start_session. | |
| wait_seconds | No |