Use in a coding agent¶
The agent skill teaches a coding agent to drive zotio directly — the most efficient path, with no MCP server in the middle. Install it as shown in Install.
Invoke it¶
In Claude Code (or another supported agent), invoke the skill with your goal:
The skill drives the CLI directly, choosing commands and flags for you.
How agents discover the surface at runtime¶
zotio is built to be introspected, so an agent never has to hard-code a command list:
zotio agent-context --pretty # structured JSON: commands, flags, auth
zotio which "find papers missing PDFs" # resolve a natural-language goal to a command
zotio capabilities # read/write classification + preconditions
zotio <command> --help # per-command help
Add --agent to any command for agent-friendly defaults — JSON output, compact fields, no color, and non-interactive prompts. Commands that write to Zotero or the vault preview unless you pass --yes:
Safety for automated callers¶
- Reads from the local desktop or mirror are safe and keyless; a few commands, such as
items bibliography, read the Zotero Web API and need a key. Zotero and vault writes preview by default;--agentdoes not auto-apply them. - Local-state writers
auth set-token,profile save, andfeedbackapply directly; use--dry-runto preview them.sync,watch, andinitalso write local state directly, but reject--dry-run. --max-changescaps how many operations a single mutation may apply (lower under--agent). Values below-1are usage errors (exit 2). Negative--max-failuresvalues also exit 2.--dry-runsuppresses every write the command itself performs (no Zotero write, local file, config save, or journal entry); read requests still run. Output you request with--deliveris still published, including to a file or webhook sink.
See Safe-by-default writes for the full mutation contract and the command reference for every flag.