Skip to content

GitHub Copilot Capabilities

SPFx Toolkit provides a set of AI capabilities that may be used in GitHub Copilot Chat extension. The chat participant allows you to have a discussion grounded for SharePoint Framework development and the Language Model tools will provide you with several capabilities to manage your SharePoint Online tenant.

SPFx Toolkit provides a set of language model tools that are available in GitHub Copilot agent mode. Some of them are designed to work in the context of your SharePoint Framework project but other may work regardless of what you have opened in VS Code and aim to do common task on your SharePoint Online tenant.

language-model-tools

You don’t need to do anything specific to use any of the language model tools in GitHub Copilot agent mode. Copilot should figure out the best tool that it may use to fulfill your prompt. Optionally you may # hashtag a tool in your prompt to make it clear what you want to be used.

language-model-tools-in-action

This set of tools aim to allow you to perform common management tasks on your SharePoint Online tenant. In order to use them you need to be first signed in to your tenant in SPFx Toolkit.

The extension provides the following tools

ToolDescription
SharePointAppInstallInstalls an app from tenant app catalog in the site
SharePointAppInstanceListList installed SharePoint apps in a site
SharePointAppListLists apps from the tenant app catalog
SharePointAppUninstallUninstalls an app from a site
SharePointAppUpgradeUpgrade a SharePoint app in the specified site
SharePointListAddCreates list in the specified site
SharePointListGetGets information about the specific list
SharePointListRemoveRemoves the specified list
SharePointPageAddCreates a page
SharePointPageGetGets information about the specific page
SharePointPageListLists pages in the specified site
SharePointPageCopyCopies a SharePoint page
SharePointPageRemoveRemoves the specified page
SharePointSiteAddCreate a new SharePoint Online site
SharePointSiteGetGets information about the specific site
SharePointSiteRemoveRemove a SharePoint Online site
SharePointFrameworkProjectUpgradeUpgrade SharePoint Framework project
SharePointFrameworkLocalEnvironmentSetupSet up local environment for SharePoint Framework development

chat-intro

SPFx Toolkit comes along with a chat participant that you may use in GitHub Copilot ask mode. Simply, mention @spfx in the chat to ask dedicated questions regarding SharePoint Framework development.

@spfx is your dedicated AI assistant that will help you with anything that is needed to develop your SharePoint Framework project. It has predefined commands that are tailored toward a specific activity for which you require guidance.

chat-commands

Lets explore the available commands that you may use in the chat participant.

May be used to get guidance on how to create a new solution or find and reuse an existing sample from the PnP SPFx sample gallery Check it out in action 👇

chat-in-action-new chat-in-action-new2

Managing Microsoft 365 tenant using natural language

Section titled “Managing Microsoft 365 tenant using natural language”

SPFx Toolkit no longer supports retrieving data from your SharePoint Online tenant by using the /info chat participant command. In order to manage your Microsoft 365 tenant using natural language, we recommend using the CLI for Microsoft 365 MCP server.