tool_check_csdn_login
Check if the saved CSDN session is still logged in before publishing, so an expired login does not cause a failed draft upload.
Instructions
Check whether the saved CSDN session is still logged in.
Opens a browser (headless by default), loads www.csdn.net with the saved storage state, and reports login status. Call this before publish_csdn to avoid a failed publish due to an expired session.
Args: headless: Run headless (default True for a quick check).
Returns: dict with {ok, logged_in, needs_login, saved_session, message}
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": "tool_check_csdn_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| headless | No |