add_ssh_key
Import an existing SSH private key the user already has (e.g. their local ~/.ssh/id_ed25519). Same validation as the web app's add-key form: OpenSSH-format RSA/Ed25519, no passphrase. The private key is encrypted at rest and never returned afterwards. Prefer generate_ssh_key unless the user explicitly wants to reuse an existing key.
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": {
"label": "<label>",
"private_key": "<private_key>"
},
"name": "add_ssh_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| private_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |