get_workspace_info
Retrieve authoritative workspace info—model, paths, environment type—at session start to ensure the correct target model for X++ development.
Instructions
ALWAYS call FIRST at session start. Returns model name, package path, framework directory, project path, environment type, and EXTENSION_PREFIX. Flags placeholder model names and missing prefix. projectName/projectPath ONLY when the USER changed project. This is the authoritative source for target model — not search results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagnostics | No | Include verbose sections (config sources, suffix, project paths, index scan, stdio handshake). Use when debugging config or connectivity. | |
| projectName | No | Only when the USER says "switch to <project>". The PROJECT file name, e.g. "Contoso - FeatureManagement". NOT a model name: one model is built by many projects, so naming it selects none and the call is refused. Reads span every model already. | |
| projectPath | No | Absolute path to a .rnrproj file. Fallback when projectName is ambiguous or D365FO_SOLUTIONS_PATH is not configured. Example: "K:\\repos\\Contoso\\MyProject\\MyProject.rnrproj" |