Send a text
send_smsSend a single SMS to one phone number from your own Android phone and number; the recipient sees a familiar number and can reply. Use for one-to-one texts, not sign-in codes.
Instructions
Send one text message (SMS) to one phone number. The user's own Android phone, running the SMSTunnel app, sends it from the user's own number, so the recipient sees a number they know and can reply.
One text per person: each call has exactly one recipient. To text several people (for example a reminder to each client with an appointment tomorrow), call this tool once per person, about 30 texts a minute at most.
Before texting several people, show the user the whole list (each person's number and the exact words) and wait for their OK. For a single text, unless the user already approved this exact text, show the number and the words and wait for their OK.
Only send texts the user asked for and the recipient expects.
Number in international format (+ and the country code). A number without it needs defaultCountryCode; ask the user when unsure.
Up to 1600 characters; long texts go out as several SMS parts.
If the phone is offline, the text waits and goes out when the phone is back online.
Never resend a text automatically: after an error, a timeout, or a failed or unconfirmed status, tell the user and let them decide.
For sign-in or verification codes, use send_sign_in_code instead. Returns the message ID; check delivery with get_message_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ONE phone number, in international format: + and the country code, e.g. +14155550123. | |
| message | Yes | The words of the text, up to 1600 characters. | |
| deviceId | No | ID of the phone that should send it, from list_phones. Leave it out to use SMSTUNNEL_DEVICE_ID or, when that is not set, a phone SMSTunnel picks. | |
| defaultCountryCode | No | Country calling code for a number written without + or 00, e.g. "+1" or "44". Defaults to SMSTUNNEL_DEFAULT_COUNTRY_CODE. Leave it out for numbers that already start with +. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The number as it was given. | |
| queued | Yes | true when the phone was offline: the text waits and goes out when the phone is back online. | |
| branded | Yes | true when the Free plan's texts for the day were used up and this one goes out with a short SMSTunnel line at the end. | |
| messageId | Yes | ID of the text; pass it to get_message_status. | |
| remainingToday | No | Texts left today on the plan (without that line). |