Explore Schema
Explore the Directus data model.
Process
If this is the first call in the session, call
system-prompttool first (no params)No argument provided:
- Call
schematool with no parameters (discovery mode) - Display all collections as a table: name, icon, notes
- Group by collection folders if present
- Show total collection count
- Call
Collection name provided:
- Call
schematool withkeys: ["<collection-name>"] - Display fields as a table: name, type, interface, required, notes
- List relations: field → related collection (type)
- Show display template if set
- Call
Output Format
Discovery mode:
| Collection | Icon | Notes |
|-----------|------|-------|
| posts | article | Blog posts |
| authors | person | Content authors |
Detailed mode:
## posts
| Field | Type | Interface | Required |
|-------|------|-----------|----------|
| title | string | input | Yes |
| content | text | rich-text-md | No |
Relations:
- author → authors (M2O)
- tags ↔ tags (M2M via posts_tags)