Skip to content

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:

/zotio export a week of highlights from my "LLM eval" collection as markdown

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:

zotio items audit --agent
zotio tags audit fix --agent --yes   # apply the merge

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; --agent does not auto-apply them.
  • Local-state writers auth set-token, profile save, and feedback apply directly; use --dry-run to preview them. sync, watch, and init also write local state directly, but reject --dry-run.
  • --max-changes caps how many operations a single mutation may apply (lower under --agent). Values below -1 are usage errors (exit 2). Negative --max-failures values also exit 2.
  • --dry-run suppresses every write the command itself performs (no Zotero write, local file, config save, or journal entry); read requests still run. Output you request with --deliver is 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.