save_secret
Saves a secret to 1Password by creating an item or setting a field from a file, command output, or pasted value without returning the secret.
Instructions
Save a secret to 1Password: create an item or set one field of an existing item. The value is never returned. Give exactly one source: from_file (e.g. a file delivered by a secret-request card; deleted after saving by default), from_command (its stdout becomes the value and is never shown; e.g. a CLI that creates a token), or value (only when the user already pasted it in the conversation).
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": {
"item": "<item>"
},
"name": "save_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Item title, e.g. "GITHUB_TOKEN" or "Staging admin" | |
| field | No | Field to set. Default "credential"; use "username"/"password" for logins | |
| shell | No | Shell for from_command | |
| value | No | Literal value, only if the user already shared it in the chat | |
| vault | No | Vault, if more than one is accessible | |
| secrets | No | Secrets for from_command, same format as run_with_secrets | |
| website | No | Website URL, for logins | |
| category | No | For new items. Default ApiCredentials | |
| concealed | No | Store as a concealed field. Default true; false for usernames, hosts, URLs | |
| from_file | No | Path of a file whose content (trimmed) is the value | |
| overwrite | No | Required to replace a field that already has a value | |
| delete_file | No | Delete from_file after saving. Default true | |
| description | No | What the secret is for and how to use it (shown by list_secrets) | |
| from_command | No | Command whose stdout (trimmed) is the value; runs like run_with_secrets |