Current User
current_userRetrieve the authenticated AFFiNE user profile to verify credentials before workspace or document operations with a read-only check.
Instructions
Return the currently authenticated AFFiNE user profile. Use this read-only check to verify credentials before workspace or document operations.
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": "current_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| ok | No | ||
| code | No | ||
| name | No | ||
| No | |||
| error | No | ||
| details | No | ||
| disabled | No | ||
| avatarUrl | No | ||
| causeCode | No | ||
| retryable | No | ||
| emailVerified | No | ||
| recoveryGuidance | No |