prepare
Aggregate development context for D365 F&O X++ tasks: get object details, extension eligibility, naming rules, and grounding token in one call before modifying, creating, or testing code.
Instructions
ONE-call context aggregator + groundingToken (30-min TTL, required for extension/new-object writes when GROUNDING_ENFORCE=true). Choose a mode:
• change → extending/modifying an EXISTING object: exact signature, existing CoC wrappers, eligibility, recommended strategy, naming, patterns. Replaces the analyze→search→info→generate loop.
• create → a NEW object: collision check, naming with auto-prefix, similar objects, EDT suggestions, reusable labels, mined property defaults.
• test → writing a SysTest for an existing class: methods worth covering, tests that already exist, whether the model references TestEssentials, and the red-first cycle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | One-sentence description of the intent. Example (change): "Add CoC on CustTable.validateWrite". Example (create): "Parameter table for the Contoso import feature." | |
| mode | Yes | ||
| operation | No | [change] The modify operation(s) you intend to run — comma-separated for several ("add-field,add-index"). Their full parameter contracts come back in THIS response. Defaults to add-method when methodName is given. | |
| fieldsHint | No | [create] For tables/views: planned field names — each gets EDT suggestions from the index. | |
| methodName | No | [change] Target method name when the change involves a specific method (CoC or event handlers). Example: "validateWrite". | |
| objectName | Yes | [change] Name of the object to extend/modify (e.g. "CustTable"). [create] Proposed BASE name WITHOUT model prefix. | |
| objectType | No | [change] type — auto-detected when omitted. [create] REQUIRED; an extension is Base.Suffix. | |
| proposedName | No | [change] Proposed name for the new extension class/object. When provided, naming validation runs. |