💡 [Feature]: Add list_spo_page Language Model Tool for modern SharePoint page listing operation
🎯 Aim of the feature
Create a new Language Model Tool for listing modern SharePoint pages using the CLI for Microsoft 365 spo page list command. This tool will enable GitHub Copilot to assist users in discovering and enumerating modern SharePoint pages within a site, providing an overview of available pages for management or selection purposes.
Tool Specification
Name: list_spo_page Model description: The tool description must cover the following guidance:
- What exactly does the tool do? - describe the specific functionality and capabilities
- What kind of information does it return? - detail the expected response format
- When should and shouldn't it be used? - provide clear use cases and scenarios to avoid
- Describe important limitations or constraints of the tool - identify technical and permission limitations
Under the hood use: spo page list
The issue https://github.com/pnp/vscode-viva/issues/586 has been implemented and can be used as a reference to ensure consistency with the correct standards.
📷 Images (if possible) with expected result
No response
🤔 Additional remarks or comments
- VS Code LM docs: https://code.visualstudio.com/api/extension-guides/tools
- CLI for Microsoft 365 Reference: https://pnp.github.io/cli-microsoft365/cmd/spo/page/page-list
I think it's only worth mentioning that the new code should follow the same approach as we have for already existing LM Tool that allows to add a page.
https://github.com/pnp/vscode-viva/blob/main/src/chat/tools/spo/PageAdd.ts
Also, IMO we should put this onhold until #586 is done. That way we may ensure whoever will be implementing this LM tool will follow the new standard as well