vscode-viva icon indicating copy to clipboard operation
vscode-viva copied to clipboard

💡 [Feature]: Add copy_spo_page Language Model Tool for modern SharePoint page copy operation

Open Saurabh7019 opened this issue 3 months ago • 1 comments

🎯 Aim of the feature

Create a new Language Model Tool for copying SharePoint pages using the CLI for Microsoft 365 spo page copy command. This tool will enable GitHub Copilot to assist users in duplicating modern SharePoint pages and templates within the same site or across different sites.

Tool Specification

Name: copy_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 copy

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

Saurabh7019 avatar Sep 27 '25 17:09 Saurabh7019

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

Adam-it avatar Sep 27 '25 20:09 Adam-it