auth_import-key
Imports an existing Ethereum private key into local config, preferring stdin to avoid leaking it to shell history or transcripts; existing saved addresses stay unchanged.
Instructions
Import an existing Ethereum private key into the local config, next to any keys already saved. Importing an address that is already saved changes nothing. Prefer stdin to avoid leaking the key to shell history or tool-call transcripts: echo $PRIVATE_KEY | splits auth import-key. The derived address is echoed to stderr before writing; the key itself is never returned.
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": "auth_import-key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional human-readable label. Defaults to a short form of the address. | |
| privateKey | No | Private key (0x-prefixed or raw hex). Refused under MCP mode; prefer stdin. |