PingCode User Login (OAuth)
pingcode_auth_loginAuthenticate user via browser authorization: returns URL to login and obtain code, then exchanges code for token saved locally.
Instructions
用户态浏览器授权登录。不传 code:返回授权 URL 与引导,请去浏览器打开并登录授权,再从回调地址复制 code 回来;传 code:用授权码换取并保存用户令牌(0600 本地文件),返回当前用户。不读取浏览器 cookie/storage,不要把网页登录 token 贴进聊天。
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": "pingcode_auth_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | 浏览器授权回调 URL 中的 code 参数;不传则返回授权 URL 与引导。 |