boss_login
Manage BOSS Zhipin login sessions for Career Kit job-data scraping: check status, open a visible QR login page, or close the dedicated browser.
Instructions
管理 BOSS 直聘登录会话(status / login / close)。
何时调用:
用户同意抓取 BOSS 后,先调用 action="status" 判断是否已登录;
未登录时调用 action="login" 打开可见登录页,用户只需扫码;
需要关闭专用浏览器时调用 action="close"。
Args: action: status(只读检查,零副作用)/ login(打开登录页等待扫码)/ close(关闭专用浏览器) live: 仅 action="status" 生效;true 时额外做一次真实搜索探测(后台标签页) timeout: action="login" 的最长等待秒数
Returns: JSON 字符串:登录标记、剩余 TTL(唯一来源 LOGIN_TTL_SECONDS)、 CDP 端口与专用浏览器进程状态,以及下一步建议。 登录成功不会关闭浏览器;失败时保留登录页与浏览器供继续扫码。
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": "boss_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | ||
| action | No | status | |
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |