Refresh the INDstocks access token
refresh_tokenRenew your expired INDstocks access token to restore all failing tools. Supply a six-digit authenticator code or rely on the configured INDSTOCKS_TOTP_SECRET to auto-derive it.
Instructions
Generate a fresh INDstocks access token and start using it immediately — no restart, no config editing. Tokens expire 24 hours after issue, and that expiry is the usual reason every other tool starts failing at once. If INDSTOCKS_TOTP_SECRET is configured the server derives the code itself and this needs no arguments; otherwise supply the current six-digit code from your authenticator app. Prefer setting credentials in the environment: an MPIN passed here is written into the conversation transcript. INDstocks keeps one live TOTP-issued token per account, so refreshing revokes any token another script or session is holding.
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": "refresh_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mpin | No | Account MPIN. Omit if INDSTOCKS_MPIN is set in the environment. | |
| totp | No | Current six-digit authenticator code. Omit if INDSTOCKS_TOTP_SECRET is set. |