Snapshot Schema

Get a schema snapshot — shows complete data model for one or more collections Arguments: collection1 collection2 ....

agents-store Updated 0 repo stars

File contents

Snapshot Schema

Get a detailed view of the Directus data model.

Arguments

  • collection1 collection2 ... (optional) — Specific collections to snapshot. If omitted, shows discovery overview.

Process

  1. No arguments:

    • Call schema tool (discovery mode) to list all collections
    • Display collections grouped by folders
    • Show collection count and notes
  2. With collection names:

    • Call schema tool with keys: ["collection1", "collection2", ...]
    • For each collection, display:
      • Fields table: name, type, interface, required, default, notes
      • Relations: field → target collection (type, on_delete)
      • Meta: icon, display_template, singleton, versioning, archive settings
    • Call relations tool with action: "read" for full relation details
  3. Format output for easy reading — this is useful for understanding what to migrate or document.

Example

Input: posts authors categories

Shows detailed schema for posts, authors, and categories including all fields, relations, and meta configuration.

Agents-Store/codex-plugins commit 0acfe68fc9

Frequently asked questions

npx get-skill add agents-store/snapshot-schema