Save keys to an agent's vault
save_secretsSaves API keys or tokens to an agent's vault as NAME: value pairs. They are encrypted, can't be read back, and reach the agent within seconds.
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>",
"vars": "<vars>"
},
"name": "save_secrets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vars | Yes | e.g. {"GITHUB_TOKEN": "github_pat_…"} | |
| agent_id | Yes | The agent id, like agt_j8bbg89jv5 (get_account lists them). |