save_leetcode_credentials
Validates LeetCode credentials with a test API call and stores them securely for authenticated interactions.
Instructions
Validates and saves LeetCode credentials provided by the user. Validates credentials by making a test API call to LeetCode, then securely stores them for future authenticated requests.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"csrftoken": "<csrftoken>",
"session": "<session>"
},
"name": "save_leetcode_credentials"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | Session token from LeetCode cookies (LEETCODE_SESSION) | |
| csrftoken | Yes | CSRF token from LeetCode cookies (csrftoken) |