Add a credential (the user confirms)
cred_addStore a new password, token, or API key through a prefilled form the user reviews and submits. Omit the secret so the user types it; nothing is stored until submission.
Instructions
Store a new password, token or API key. Everything you pass comes prefilled in a form or page the user checks, edits and submits; nothing is stored until then. Without secret the user types it, so you never see it: do that whenever a task needs a secret the user has not stored, and never ask for one in the chat. Pass secret only when you already have it (you generated it, or the user gave it to you). You get public metadata back; then use the credential through proxy_open.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cred_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Where it is used, e.g. https://api.github.com (needed for proxies) | |
| kind | No | Proposed kind | |
| name | No | Proposed name (e.g. github, stripe-prod). Asked if omitted. | |
| notes | No | Proposed notes | |
| header | No | Header name for an API key, e.g. x-api-key | |
| secret | No | Proposed secret, only if you already have it; shown to the user to check | |
| username | No | Proposed username |