prepare
Aggregates context for extending or creating D365 F&O objects, providing naming, collision checks, and strategies.
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.
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 | change = extend/modify an existing object; create = a brand-new object. | |
| operation | No | [change] The modify operation you intend to run; its full parameter contract comes back in THIS response, so no separate op-spec call. 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 (same value you would pass to d365fo_file create). | |
| objectType | No | [change] D365FO object type — auto-detected when omitted. [create] REQUIRED — type of the new object. | |
| proposedName | No | [change] Proposed name for the new extension class/object. When provided, naming validation runs. |