login
Authenticate with WriteFreely to obtain an access token, using either credentials or an environment variable.
Instructions
Authenticate with WriteFreely and obtain an access token.
If WRITEFREELY_ACCESS_TOKEN environment variable is set, this tool will use
that token automatically without requiring username and password.
You can provide username and password to authenticate with a different
account, or use the environment variable for better security
(recommended for production).
Args:
username: Your WriteFreely username
(optional if WRITEFREELY_ACCESS_TOKEN is set)
password: Your WriteFreely password
(optional if WRITEFREELY_ACCESS_TOKEN is set)
Returns:
Success message with access token, or information about existing 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": "login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | No | ||
| password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |