Log in and obtain an auth token
loginGiven a base URL and credentials, auto-detects the login endpoint, submits email/username and password, extracts the authentication token, and reports exactly what worked.
Instructions
Given a base URL and credentials, auto-detects the login endpoint, posts the credentials (trying email/username field variants), and extracts the token from the response. Returns the token and reports exactly what worked.
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": {
"path": "<path>",
"password": "<password>"
},
"name": "login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Project root path (used to auto-detect login endpoint). | |
| role | No | Label for this credential. | user |
| No | Email identifier. | ||
| baseUrl | No | API base URL. If omitted, the top detected candidate is used. | |
| password | Yes | Password. | |
| username | No | Username identifier (if not email). | |
| loginPath | No | Override login endpoint path. |