Replay Start
replay_startStream a captured or simulated Meshtastic packet flow over TCP, restamped to now, so an app or library can connect and test as if a real device were live.
Instructions
Start a simulated Meshtastic TCP device that streams a capture to an app.
An app, an AVD at 10.0.2.2:<port>, or the Python library connects to host:port
and gets a paced packet stream restamped to now. Poll replay_status, stop with
replay_stop. Pacing, highest first: duration, then rate, then speed. Give
concurrent sessions distinct observer_nums. Every parameter and example:
docs/replay.md.
Returns the session status, as replay_status reports it: {id, capture, listen, connect, mode, packets_total, packets_sent, connected, ...}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "replay_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Window end, ISO-8601. | |
| fuzz | No | Makes the stream hostile: a preset (`light`, `parser`, `adversary`, `chaos`) or a dict of overrides with an optional `preset` base. | |
| hold | No | Play the window once per connection, then stay connected and quiet; ignored with `loop`. | |
| host | No | Listen address; `0.0.0.0` serves every interface. | 0.0.0.0 |
| kind | No | `auto` infers it from `source`; or `sim`, `sqlite`, `jsonl`. | auto |
| loop | No | Repeat the window when it ends. | |
| mdns | No | Advertise the session over mDNS as `_meshtastic._tcp`; omit for on unless bound to loopback only. | |
| port | No | TCP port the session listens on for the app. | |
| rate | No | Steady packets per second, ignoring capture timing; wins over `speed`. | |
| speed | No | Multiplier on the capture's own cadence. | |
| start | No | Window start, ISO-8601 (UTC when no zone is given). | |
| source | No | `meshcon`/`sim`, `burningman`, `defcon`, `conference-stress` (generated meshes), a `*.db`/`*.db.gz` SQLite capture or a recorder `*.jsonl`. | meshcon |
| max_gap | No | Cap on idle seconds between packets. | |
| channels | No | Channel list that splits a SQLite capture by OTA hash with real PSKs, each `{"name", "psk", "primary", "ota_hashes", "catch_all"}`. | |
| duration | No | Play the whole window in N wall-clock seconds; wins over `rate`. | |
| sim_days | No | Days of traffic a generated mesh spans, ending now unless `start` is set. | |
| sim_seed | No | Seed for a generated mesh. | |
| fuzz_seed | No | Fuzz seed, so a crash reproduces. | |
| sim_nodes | No | Node count of a generated mesh. | |
| dupe_every | No | Simulate a duplicate radio receive every Nth packet; 0 is off. | |
| node_delay | No | Seconds between NodeInfos during the node DB download. | |
| limit_nodes | No | Cap on a file source's node DB. | |
| sim_profile | No | Overrides deep-merged over a generated preset, as a dict or JSON object, never a file path. | |
| clock_anchor | No | Epoch seconds the window's last packet is stamped as, so sessions sharing it show identical times; omit to stamp each packet now. | |
| modem_preset | No | Advertised LoRa preset, such as `LONG_FAST`. | LONG_FAST |
| observer_lat | No | Connected node's latitude in 1e-7 degrees; omit for the capture's median position. | |
| observer_lon | No | Connected node's longitude in 1e-7 degrees; omit for the capture's median position. | |
| observer_num | No | This session's node number; omit for the process default (`MESHTASTIC_REPLAY_OBSERVER_NUM`). | |
| beacon_listen | No | Advertise the mesh beacon module as listening, so the app keeps `MESH_BEACON_APP` packets. | |
| stats_interval | No | Seconds between the connected node's LocalStats updates; 0 keeps only the initial snapshot. | |
| firmware_edition | No | The app's event banner, such as `VANILLA`, `DEFCON`, `BURNING_MAN` or `HAMVENTION`. | VANILLA |
| firmware_version | No | Reported firmware build; omit for the edition's default. | |
| announce_interval | No | Seconds between "Replay Clock" progress posts to the busiest channel; 0 is off. | |
| local_metrics_interval | No | Seconds between the connected node's `DEVICE_METRICS` packets; 0 is off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||