browser_login
Opens a Chrome login page for XJTLU ETD sign-in; after authentication, it captures and stores the token and cookie needed by the library MCP server.
Instructions
开一个 Chrome 窗口让你登录,登录完成后自动把 token 和 cookie 抓进来存好。
不用复制粘贴任何东西:窗口里是真实的 etd.xjtlu.edu.cn 登录页,你自己输账号密码 (插件不碰密码),登录成功后它读同一次登录产生的 localStorage.token 与 XJTLU_UserInfo cookie,写进 ~/.xjtlu-library-mcp/state/etd.json,然后把窗口关掉。
用的是独立 profile(~/.xjtlu-library-mcp/state/chrome-profile),不碰你日常浏览器的 登录状态;但因为 profile 会被保留,下次多半能免登录直接抓到。
超时后窗口不会关——在里面把登录做完,再调一次本工具即可(会复用同一个窗口)。
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": "browser_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_seconds | No |