whoami
Checks the LMS session, re-authenticates when needed, and returns the current user ID.
Instructions
Check the LMS session (logging in again if needed) and return the user id.
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": "whoami"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userid | Yes | ||
| login_path | Yes | session | sso | password: how the client got a live session |