从本地浏览器抓取登录态
xg_login_browserAutomatically retrieves the Xsfwpt-Token from an already logged-in page in a local browser running with remote debugging enabled, eliminating manual cookie copying.
Instructions
从一个已开启远程调试端口的本地浏览器里,自动抓取已登录页面上的 Xsfwpt-Token。 前提:浏览器以 --remote-debugging-port=9222 启动,并且已经登录学工系统。 这是最省事的方式——不用手动复制 Cookie。
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": "xg_login_browser"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | No | CDP 地址,默认 http://127.0.0.1:9222 |