登入網頁聊天服務(已登入則不開瀏覽器視窗)
webchat_loginChecks whether the built-in browser profile is logged in to ChatGPT, Claude, Grok, or Gemini; if not, opens a window for one-time manual login and saves the session.
Instructions
Check whether the built-in browser profile is already logged in to the chosen service (headless, no window shown). If so, return immediately. Only when not logged in does it show a browser window so the user can log in manually once; the window is hidden again after login succeeds. The session is persisted in the profile directory and reused by later calls. Logging in is optional for chatgpt and gemini: webchat_ask also works as a guest there. Claude and Grok require it. Waits up to timeout_seconds (default 180) for the manual login; on timeout the window stays open and the user can finish later, then call webchat_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | Which web chat service to use: chatgpt (ChatGPT), claude (Claude), grok (Grok), gemini (Gemini). Default chatgpt. | chatgpt |
| timeout_seconds | No | How long to wait for a manual login (default 180s). |