Request Zotero write access
zotero_authorizeRequest a local API key by prompting a Zotero dialog, enabling write tools to run. Pick 'Always Allow' for sessions with multiple write operations.
Instructions
Request a local API key so write tools (creating collections, items, and attachments) can run. This raises a modal dialog inside Zotero on the user's screen with three choices: "Allow" issues a single-use key, "Always Allow" issues a persistent one, and "Deny" refuses. Tell the user to expect the dialog, and to pick "Always Allow" for a session that will perform several writes. The key is stored locally and reused; write tools also re-authorize on their own when a single-use key is spent, so calling this manually is only needed to grant access up front. Calling it when a key is already stored reuses that key and shows no dialog.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Request a new key even though one is already stored. Rarely needed: a stored key is reused, and replacing a persistent key with a single-use one makes things worse. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| authorized | Yes | ||
| persistent | Yes | True when the key persists; false keys are consumed by the next write. | |
| alreadyHeld | Yes | True when an existing stored key was reused and no dialog appeared. |