send_message
Send a message to an existing conversation now. Transport is chosen automatically as iMessage, SMS, or RCS. Confirm the recipient and wording before sending, because delivery is immediate and cannot be undone.
Instructions
Send a message to an existing conversation. This delivers immediately.
IRREVERSIBLE — the message goes out as soon as this runs, and scripting
cannot unsend it. Confirm the exact recipient and wording with the user
before calling, and pass confirm=True to acknowledge that. If they have
not clearly asked for it to be sent, use compose_message instead and let
them press send.
Messages picks the transport (iMessage, SMS, or RCS) for the conversation
itself, which is why this addresses a chat rather than a raw handle. To
start a new conversation, use compose_message.
Args:
chat_id: Conversation id from list_chats.
body: Text to send.
confirm: Must be True. A guard against sending by accident.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| chat_id | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| sent | No | ||
| chat_id | Yes | ||
| chat_guid | Yes | ||
| chat_name | No | ||
| characters | No |