Zotero identity & access
zotero_whoamiCheck your Zotero identity, API access scopes, server version, and available library backends. Use it to discover your userID and understand which library operations will target, without entering a numeric ID.
Instructions
Resolve the current Zotero identity (userID, username, display name) and per-library access scopes from the configured API key, report the running Zoteus version, and report which library backends are available (cloud Web API and/or the desktop local API). Call this first to discover the userID — never ask the user to type a numeric ID. It also reports which library every call defaults to and WHY (defaultLibrary.source: pinned by whoever runs the server, derived from the key, or the desktop app's own library), whether this caller has a context of their own or shares the one the server operator configured (context), and which single library this context's search index holds (searchIndex). For per-group write permission, call zotero_groups. If no API key is configured, the server runs in local-only read mode against the desktop library (users/0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cloud | Yes | Whether a cloud API key is configured and identified a Zotero user. | |
| access | No | What the key may do, as Zotero reports it: { user: {...}, groups: {...} }. Null when no key is configured. | |
| update | Yes | A newer Zoteus release, or null when this is the latest (or the check is off). | |
| userID | No | Zotero numeric user id that key belongs to. | |
| context | Yes | Whether this caller has a context of their own or shares the operator's. Says nothing about any subscription: Zoteus stores no account of its own. | |
| version | Yes | The Zoteus release answering this call, e.g. "1.19.0". | |
| localApi | Yes | Whether the Zotero desktop local API answered the probe taken for this call. | |
| username | No | Zotero username on that account. | |
| embeddings | Yes | Semantic-search health, so a keyword-only fallback is visible here and not only in zotero_index. | |
| attribution | Yes | citeproc-js attribution (CPAL Exhibit B): phrase, copyright, licence and URL. | |
| displayName | No | Display name on that account, when it has one. | |
| searchIndex | No | Which single library this context's search index holds. One index file holds one library, so a second library is searchable by meaning only after its own index exists; zotero_groups reports the same fact per group. | |
| defaultLibrary | Yes | The library every tool reads and writes when a call names none. | |
| localApiReason | No | Why the desktop local API is out of reach for this caller rather than merely down; present only when it is structurally unavailable. | |
| localApiChecked | No | ISO timestamp of that probe, or null when this server does not watch for the desktop app. | |
| localApiWatched | No | Whether this server watches for the desktop app at all (false in hosted mode). |