nexus_oauth_refresh
Refresh an expired OAuth access token when a request returns 401. If the refresh fails, clear stored tokens and log in again.
Instructions
Force a refresh of the OAuth access token via the refresh grant.
Use when a request unexpectedly returns 401. A 4xx refresh failure means the user revoked the application (see https://users.nexusmods.com/oauth/authorized_applications) and the stored tokens are cleared - log in again with nexus_oauth_login.
Returns: JSON {refreshed, expires_at, scope} or an error string.
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": "nexus_oauth_refresh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |