Add an SSH key
add_ssh_keyAdd an SSH public key to your workspace. Paste the contents of a .pub file (e.g., ssh-ed25519 AAAA... user@host).
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": {
"name": "<name>",
"public_key": "<public_key>"
},
"name": "add_ssh_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for this key (e.g., "macbook", "work-laptop") | |
| workspace | No | Workspace ID (optional: defaults to the authenticated workspace) | |
| public_key | Yes | SSH public key string (e.g., ssh-ed25519 AAAA... user@host) | |
| environment | No | Environment name (optional: defaults to the environment this session acts in) |