{"title":"Get package dependencies - algetpackagedependencies","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/al-agent-tools/al-tool-get-package-dependencies/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/al-agent-tools/al-tool-get-package-dependencies, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/al-agent-tools/al-tool-get-package-dependencies","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Learn about the al_getpackagedependencies tool available for AL development, including how to use it in Visual Studio Code with GitHub Copilot and through the AL MCP Server for headless environments and CI/CD pipelines.","date":"2026-10-02","meta":{"topic":"concept-article"},"outline":[{"level":1,"title":"Get package dependencies - al_getpackagedependencies","slug":"get-package-dependencies---al_getpackagedependencies","at":0,"chars":2299},{"level":2,"title":"Parameters","slug":"parameters","at":674,"chars":247},{"level":2,"title":"Return value","slug":"return-value","at":921,"chars":484},{"level":2,"title":"Examples","slug":"examples","at":1405,"chars":319},{"level":3,"title":"List all dependencies for the workspace project","slug":"list-all-dependencies-for-the-workspace-project","at":1417,"chars":67},{"level":3,"title":"List dependencies for a specific project","slug":"list-dependencies-for-a-specific-project","at":1484,"chars":101},{"level":3,"title":"Check whether a specific package is a dependency","slug":"check-whether-a-specific-package-is-a-dependency","at":1585,"chars":139},{"level":2,"title":"Suggested next steps","slug":"suggested-next-steps","at":1724,"chars":253},{"level":2,"title":"Related tools","slug":"related-tools","at":1977,"chars":212},{"level":2,"title":"Related information","slug":"related-information","at":2189,"chars":110}],"text":"# Get package dependencies - al_getpackagedependencies\nApplies to: AL Language extension 17.0 and later | Available in: AL MCP Server only\nThe al_getpackagedependencies tool reads the app.json file of an AL project and returns its declared package dependencies-including the app name, publisher, app ID (GUID), and version range for each dependency.\nUse this tool to understand what packages a project requires before downloading symbols or publishing, to audit dependency graphs, or to check whether a specific package is referenced.\n> NOTE\n> This tool is available on the AL MCP Server only. In Visual Studio Code, inspect the app.json file directly to view dependencies.\n## Parameters\nParameter|Type|Default|Description\nprojectPath|string|First project in workspace|Absolute path to the AL project folder containing app.json.\nname|string|-|Optional. When specified, returns only the dependency matching this app name.\n## Return value\nProperty|Type|Description\nSucceeded|boolean|true if the operation completed successfully.\nModuleName|string|The name of the queried project or module.\nDependencies|array|List of dependency items (see below).\nMessage|string|Error description if Succeeded is false.\nEach item in Dependencies has:\nProperty|Type|Description\nName|string|App name.\nPublisher|string|Publisher name.\nId|string|App ID (GUID).\nVersion|string|Required version range (for example, `\"24.0.0.0\"`).\n## Examples\n### List all dependencies for the workspace project\n```json\n{}\n```\n### List dependencies for a specific project\n```json\n{\n  \"projectPath\": \"C:/repos/MyExtension\"\n}\n```\n### Check whether a specific package is a dependency\n```json\n{\n  \"projectPath\": \"C:/repos/MyExtension\",\n  \"name\": \"Base Application\"\n}\n```\n## Suggested next steps\n Use the returned dependency list to decide which packages to download with al_downloadsymbols<al-tool-download-symbols>.\n Compare the declared dependencies against what is available in `.alpackages` to identify missing symbols.\n## Related tools\n al_downloadsymbols<al-tool-download-symbols> - Download the symbol packages for the listed dependencies.\n al_symbolsearch<al-tool-symbol-search> - Search symbols within the downloaded packages.\n## Related information\nAI agent tools overview<al-agent-tools-overview>\nAL MCP Server reference<al-mcp-server>"}