--wait is used. This maps directly to POST /sessions/{id}/messages described in the Messages API reference.
Usage
Options
| Flag | Default | Description |
|---|---|---|
--role | user | Message role: system, user, assistant, or tool |
--wait | false | Wait for the turn to complete and print the final session state |
--timeout | — | Maximum seconds to wait (only applies with --wait) |
--webhook-url | — | URL to POST the turn result to when it completes |
--webhook-token | — | Bearer token for the webhook Authorization header |
--webhook-include-messages | false | Include the full message history in the webhook payload |
--param | — | KEY=VALUE parameter passed to the agent as user_params (repeatable). Numeric values are auto-coerced to int or float. |

