Adopt Vanity Identity
vanity_applyWrites a vanity private key to a Meshtastic device, replacing its node identity and moving it to the matching NodeNum; requires confirmation because peers and admin references must be updated.
Instructions
Write a vanity private key to a device, moving it to the matching NodeNum.
Destructive: it replaces the node's identity. Peers keep the old public key until
they see the new NodeInfo, and anything naming the old node (admin keys, DM history)
must be re-pointed; keep the old key for a way back. Requires confirm=True, or the
user's answer when the client can ask (always, with MESHTASTIC_MCP_CONFIRM=human), a
clamped key, and lora.region set, since firmware will not derive keys while it is
UNSET. The board reboots (~7 s). See docs/vanity.md.
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": {
"private_key": "<private_key>"
},
"name": "vanity_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Serial port or `tcp://host[:port]`; omit to auto-select the one likely Meshtastic device. | |
| verify | No | Reconnect after the reboot and check the new number. | |
| confirm | No | `True` once the user agreed; omitted, a client that can ask prompts the human. | |
| private_key | Yes | The vanity private key, hex or base64, as `vanity_grind_poll` or `vanity_preview` shows it. | |
| verify_timeout_s | No | Seconds `verify` waits for the node to come back. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||