login
Log in with teacher credentials to the RuoYi platform, creating a server-side token that authenticates subsequent tool calls with permission auditing.
Instructions
以真实 teacher 账号登录平台,拿双头 token 注入本会话身份(后续所有工具隐式带该身份、落 RuoYi 权限审计)。
参数: username/password: teacher 账号。留空则用 .env 兜底(RUOYI_USERNAME/RUOYI_PASSWORD)。 返回: {ok, teacher_id, username} —— token 仅驻留 server 侧会话态,不回吐明文给调用方。
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": "login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | No | ||
| username | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||