Describe a document type
describe-document-typeDescribe Foundry document types: fields, subtypes, system fields, permissions, and specialized tools. Use before creating or modifying a type via generic access.
Instructions
List the document types of this Foundry, or describe one: its fields from Foundry's data model, its subtypes, the system fields of a subtype in the active game system, what it holds and belongs to, the permission level writing it needs, the fields generic access never changes, and the specialised tools for it. Call it before creating or changing a type through generic access for the first time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How deep nested fields are listed, 1 to 8; default 4 | |
| subtype | No | Type within it, e.g. "npc", for the system fields | |
| documentType | No | Foundry document name; leave out for the list of all types |