Request Credential
alterlab_request_credentialRequest a login, one-time code seed or other credential for a task without ever seeing it. Returns an entry_url for the user to open and seal the value in their browser (the confirmation code is never returned to the agent; the user's own session needs none); the value never passes through chat or this tool. When status becomes provided, fill it with a fill_secret action carrying credential_request and field. reuse is once, task or standing; the domain must be within the task's allowed domains.
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": {
"task_id": "<task_id>",
"domain": "<domain>",
"fields": "<fields>"
},
"name": "alterlab_request_credential"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reuse | No | How long the credential stays usable; default once | |
| domain | Yes | Site the credential is for, e.g. example.com | |
| fields | Yes | Values to request | |
| reason | No | Why it is needed, shown to the user | |
| task_id | Yes | Task that needs the credential | |
| use_limit | No | Maximum fills | |
| expires_in_s | No | Link lifetime in seconds; default 900 | |
| ask_each_time | No | Require user confirmation per later task; default false | |
| valid_for_days | No | Standing credential lifetime in days |