Send Text
send_textSend a text message over a Meshtastic mesh, either broadcast to all nodes or directed to a specific node, with optional acknowledgement requests and transmit confirmation.
Instructions
Send a text message over the mesh.
Delivery is async and best effort: by default this returns once the packet is queued.
wait_for_tx=True also polls for the firmware's Started Tx (id=...) log line or a
neighbor's rebroadcast. tx_confirmed is true (seen), false (logs flowed, no TX) or
null (not observable, usually because firmware logs are not captured, which does NOT
mean failure); call set_debug_log_api(True) on the port first to make it meaningful.
tx_unconfirmed_reason says which case. packets_window cannot confirm a local send.
Returns {ok, packet_id, destination}, plus {tx_confirmed, tx_latency_s, tx_unconfirmed_reason?} with wait_for_tx=True.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "send_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | A node id ("!abcdef01") or number to direct-message; omit to broadcast ("^all"). | |
| port | No | Serial port or `tcp://host[:port]`; omit to auto-select the one likely Meshtastic device. | |
| text | Yes | The message. | |
| want_ack | No | Ask the recipient for an acknowledgement. | |
| tx_linger_s | No | Seconds to hold the connection open after the send, so the firmware's ~4 s politeness delay and the airtime finish before the port resets, which would drop a queued broadcast. | |
| wait_for_tx | No | Also wait for evidence that the packet reached the air. | |
| tx_timeout_s | No | Seconds `wait_for_tx` polls before giving up. | |
| channel_index | No | The channel to send on. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| packet_id | Yes | ||
| destination | Yes | `^all` for a broadcast | |
| tx_confirmed | No | true: TX seen; false: logs flowed and showed no TX; null: not observable, usually because firmware logs are not captured, which is not a failure | |
| tx_latency_s | No | ||
| tx_unconfirmed_reason | No | why `tx_confirmed` is false or null |