learnjcu_login
Sign in to LearnJCU or refresh an expired session when LearnJCU tools report you are signed out; opens the default browser for authentication when needed.
Instructions
Sign in to LearnJCU or refresh an expired session. Call this whenever a LearnJCU tool says the session expired or you are not signed in. Each saved account has its own sign-in; with several, pass account (the user is asked when you leave it out). It first refreshes silently (a few seconds, no window). If the user has to sign in, it opens the sign-in page in their default browser: tell the user a browser window opened and ask them to sign in there. If the result says waitingForUser, call again after the user says they are done. Never ask the user for their password; they type it in the browser.
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": "learnjcu_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Saved account to use (see learnjcu_list_accounts). Only needed when several accounts are saved and the user has not chosen one yet. | |
| newAccount | No | Sign in someone else and save them as another account | |
| waitSeconds | No | How long to wait for the sign-in to finish before returning (default 45, which fits the 60 s default tool timeout of Codex) |