mystudent_login
Sign in to MyStudent or refresh an expired session when a MyStudent tool reports you are signed out; saved JCU single sign-on accounts are reused and a browser handles any required login.
Instructions
Sign in to MyStudent or refresh an expired session. Call this whenever a MyStudent tool says the session expired or you are not signed in. MyStudent uses the same JCU single sign-on as LearnJCU, so this is usually silent. Each saved account has its own sign-in; with several, pass account (the user is asked when you leave it out). Accounts are created by learnjcu_login; sign in to LearnJCU first if none is saved. 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": "mystudent_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. | |
| 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) |