Get Module Schema
get_module_schemaRetrieve a module's schema to view its fields, states, and optional activities and flows, helping you filter queries correctly and understand state transitions.
Instructions
Read-only lookup of one module's schema; it changes nothing and performs no activity. Returns the canvas schema for a module. Use tier=basic (default) for fields and states only. Use tier=extended to also include activities and flows. Use basic for query operations. Use extended when you need to understand available activities and state transitions.
What the module's designer wrote for an AI rides beside the name lists: stateDetails (both tiers) gives each state's ai_hint/ai_instruction — e.g. which states no longer count — and activityDetails (extended) gives each activity's actor (ai: you may submit it; hybrid: only after the user approves the planned submission; human: never — a person performs it), ai_hint/ai_instruction, confidence_threshold and from (the states it can be performed in). A top-level ai_instruction is the module's standing instruction — follow it.
Both tiers include your accessible listings: each carries its designed filter in the SAME shape as list_entries' filters (applied automatically when that listing is queried — pick the listing whose conditions already match the question and do NOT re-add them as filters), plus partialFilter (an inexpressible formula/script condition also applies), profileOnly (rows limited to the current user's own entries) and scripted markers. Pass a listing's name as list_entries' listing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | basic = fields + states. extended = + activities and flows. | basic |
| module | Yes | Module name from list_modules | |
| workspaceId | No | Workspace ID. Omit if set via env or set_workspace; required in stateless/remote mode. |