ngit_connect
Connect a user's Nostr identity by showing a QR or code, then wait for signer approval; collect a name and optional backup email for new accounts without handling nsec keys.
Instructions
Connect the user's Nostr identity. Call with no arguments, show say (and the QR, or qr_text if you cannot show images), then wait_s=50 until connected. For a new user, pass name and then email as say asks (email="" to skip). Never ask for, accept or repeat an nsec.
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": "ngit_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | new user: what people should call them | |
| No | new user: backup email, "" or "skip" to skip | ||
| backup | No | they want to back up or move their key | |
| bunker | No | a bunker:// link the user pasted | |
| wait_s | No | ||
| confirm | No | only when the user said yes to state "confirm" | |
| restart | No | new code / switch account / make a new account anyway | |
| new_user | No | they said they are new but gave no name | |
| use_git_config | No | only after the user agreed, when state is no_keychain |