Add SSH key to webspace
webspace_add_ssh_keyAdd an SSH public key to a webspace's ~/.ssh/authorized_keys, so its owner can log in over SSH and SFTP as the site user. Accepts ssh-ed25519, ssh-rsa and ecdsa-sha2-nistp256/384/521 keys. Returns the key with its keyId, the SHA-256 fingerprint that webspace_delete_ssh_key takes. Host, port and username for the login come from webspace_get_ssh_info. For a VPS use vps_upload_ssh_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": {
"id": "<id>",
"publicKey": "<publicKey>"
},
"name": "webspace_add_ssh_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The webspace ID | |
| label | No | Comment stored with the key, e.g. the person or device it belongs to | |
| publicKey | Yes | One public key line: '<type> <base64> [comment]', e.g. the content of id_ed25519.pub |