credentials.save
Save encrypted login credentials bound to an exact origin for agent use in development and test accounts; passwords stay unreadable and are never returned by tools.
Instructions
Save a login the agent can USE but never READ. The password is encrypted at rest and no tool ever returns it, so a prompt-injected agent cannot exfiltrate it. Bound to an exact origin. Intended for development and test accounts.
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": {
"site": "<site>",
"origin": "<origin>",
"username": "<username>",
"password": "<password>"
},
"name": "credentials.save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| site | Yes | Short name to refer to it by, e.g. "staging". | |
| fields | No | Extra form fields by name attribute, e.g. an org or tenant. | |
| origin | Yes | Exact origin it may be used on, e.g. "https://staging.example.com". | |
| password | Yes | Stored encrypted. Never returned by any tool. | |
| username | Yes | ||
| login_url | No | Where the login form lives, if not the origin root. | |
| selectors | No | Override the auto-detected form selectors. |