Let an agent log into a server
add_machineAdds or updates a server an agent may log into with its own SSH key (the server needs a login for that key first; read_manual which=api has the recipe). watch: true includes it in an immune-system agent's sweeps.
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": {
"agent_id": "<agent_id>",
"alias": "<alias>",
"host": "<host>",
"user": "<user>"
},
"name": "add_machine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| note | No | ||
| port | No | ||
| user | Yes | ||
| alias | Yes | ||
| watch | No | ||
| agent_id | Yes | The agent id, like agt_j8bbg89jv5 (get_account lists them). |