Generate Access Token
generate_access_tokenGenerate a personal access token for AFFiNE authentication. Returns a one-time secret that must be stored securely.
Instructions
Generate a new personal access token and return its one-time secret. This creates a credential; store the returned token securely because it may not be shown again.
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": {
"name": "<name>"
},
"name": "generate_access_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable token name shown in AFFiNE token settings. | |
| expiresAt | No | Optional expiration timestamp accepted by AFFiNE, typically an ISO 8601 string. |