Skip to content

SPFx Toolkit AI capabilities

chat-intro

Now you may use SPFx Toolkit as a chat participant in GitHub Copilot chat extension. Simply, mention @spfx in the chat to ask dedicated questions regarding SharePoint Framework development.

@spfx is your dedicated AI Copilot 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

Currently, we support the following commands:

Dedicated to providing information on how to setup your local workspace for SharePoint Framework development. Check it out in action 👇

chat-in-action-setup

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

This command is beta and is fine-tuned to provide help in coding your SharePoint Framework project and provides additional boosters like validating the correctness of your SPFx project, scaffolding a CI/CD workflow, or renaming your project, and many more.

This command will allow you to ask and retrieve any kind of data from you SharePoint Online tenant. This command will only work if your are signed in to your tenant. It uses CLI for Microsoft 365 commands under the hood to retrieve and explain data and assets from your SharePoint Online tenant. Currently, it does support only retrieving information, it will not support you in creating, updating or removing any resources. For example, you want to check if some list item or file exists. Or how many items with specific metadata do you have on a list? Or ask for content type columns to generate an interface based on the response quickly.

This command has the following skills:

CommandDescription
m365 spo page template listLists all page templates in the given site
m365 spo homesite getGets information about the Home Site
m365 spo theme listRetrieves the list of custom themes
m365 spo file sharinginfo getGenerates a sharing information report for the specified file
m365 spo getGets the context URL for the root SharePoint site collection and SharePoint tenant admin site
m365 spo sitedesign run status getGets information about the site scripts executed for the specified site design
m365 spo app instance listRetrieve apps installed in a site
m365 spo page control getGets information about the specific control on a modern page
m365 spo page getGets information about the specific modern page
m365 spo web listLists subsites of the specified site
m365 spo listitem getGets a list item from the specified list
m365 spo app listLists apps from the specified app catalog
m365 spo contenttype getRetrieves information about the specified list or site content type
m365 spo storageentity listLists tenant properties stored on the specified SharePoint Online app catalog
m365 spo site getGets information about the specific site collection
m365 spo web installedlanguage listLists all installed languages on site
m365 spo field listRetrieves columns for the specified list or site
m365 spo list sitescript getExtracts a site script from a SharePoint list
m365 spo tenant commandset getGet a ListView Command Set that is installed tenant wide
m365 spo site listLists modern sites of the given type
m365 spo storageentity getGet details for the specified tenant property
m365 spo cdn policy listLists CDN policies settings for the current SharePoint Online tenant
m365 spo web getRetrieve information about the specified site
m365 spo sitedesign listLists available site designs for creating modern sites
m365 spo term listLists taxonomy terms from the given term set
m365 spo term group getGets information about the specified taxonomy term group
m365 spo eventreceiver getRetrieves specific event receiver for the specified web, site or list by event receiver name or id
m365 spo tenant commandset listRetrieves a list of ListView Command Sets that are installed tenant-wide
m365 spo user getGets a site user within specific web
m365 spo customaction listLists user custom actions for site or site collection
m365 spo tenant settings listLists the global tenant settings
m365 spo roledefinition getGets specified role definition from web
m365 spo field getRetrieves information about the specified list- or site column
m365 spo list listGets all lists within the specified site
m365 spo applicationcustomizer listGet a list of application customizers that are added to a site
m365 spo term group listLists taxonomy term groups
m365 spo site apppermission getGet a specific application permissions for the site
m365 spo web clientsidewebpart listLists available client-side web parts
m365 spo user listLists all the users within specific web
m365 spo group listLists all the groups within specific web
m365 spo orgassetslibrary listList all libraries that are assigned as asset library
m365 spo sitedesign task listLists site designs scheduled for execution on the specified site
m365 spo file sharinglink getGets details about a specific sharing link of a file
m365 spo contenttypehub getReturns the URL of the SharePoint Content Type Hub of the Tenant
m365 spo serviceprincipal permissionrequest listLists pending permission requests
m365 spo applicationcustomizer getGet an application customizer that is added to a site
m365 spo navigation node getGets information about a specific navigation node
m365 spo hidedefaultthemes getGets the current value of the HideDefaultThemes setting
m365 spo serviceprincipal grant listLists permissions granted to the service principal
m365 spo file sharinglink listLists all the sharing links of a specific file
m365 spo hubsite data getGet hub site data for the specified site
m365 spo listitem attachment getGets an attachment from a list item
m365 spo hubsite listLists hub sites in the current tenant
m365 spo page column getGet information about a specific column of a modern page
m365 spo userprofile getGet SharePoint user profile properties for the specified user
m365 spo page listLists all modern pages in the given site
m365 spo tenant appcatalogurl getGets the URL of the tenant app catalog
m365 spo sitedesign getGets information about the specified site design
m365 spo eventreceiver listRetrieves event receivers for the specified web, site or list
m365 spo listitem listGets a list of items from the specified list
m365 spo propertybag listGets property bag values
m365 spo list view getGets information about specific list view
m365 spo list view listLists views configured on the specified list
m365 spo page section listList sections in the specific modern page
m365 spo propertybag getGets the value of the specified property from the property bag
m365 spo knowledgehub getGets the Knowledge Hub Site URL for your tenant
m365 spo list contenttype listLists content types configured on the list
m365 spo term getGets information about the specified taxonomy term
m365 spo list getGets information about the specific list
m365 spo web retentionlabel listGet a list of retention labels that are available on a site
m365 spo commandset getGet a ListView Command Set that is added to a site
m365 spo term set listLists taxonomy term sets from the given term group
m365 spo commandset listGet a list of ListView Command Sets that are added to a site
m365 spo page control listLists controls on the specific modern page
m365 spo listitem attachment listGets the attachments associated to a list item
m365 spo file getGets information about the specified file
m365 spo list retentionlabel getGets the default retention label set on the specified list or library
m365 spo folder listReturns all folders under the specified parent folder
m365 spo tenant recyclebinitem listReturns all modern and classic site collections in the tenant scoped recycle bin
m365 spo sitedesign rights listGets a list of principals that have access to a site design
m365 spo sitedesign run listLists information about site designs applied to the specified site
m365 spo site recyclebinitem listLists items from recycle bin
m365 spo page section getGet information about the specified modern page section
m365 spo page column listLists columns in the specific section of a modern page
m365 spo tenant applicationcustomizer listRetrieves a list of application customizers that are installed tenant-wide
m365 spo site apppermission listLists application permissions for a site
m365 spo hubsite getGets information about the specified hub site
m365 spo file version getGets information about a specific version of a specified file
m365 spo group getGets site group
m365 spo app getGets information about the specific app from the specified app catalog
m365 spo customaction getGets information about a user custom action for site or site collection
m365 spo orgnewssite listLists all organizational news sites
m365 spo contenttype listLists content types from specified site
m365 spo sitescript listLists site script available for use with site designs
m365 spo file version listRetrieves all versions of a file
m365 spo list webhook listLists all webhooks for the specified list
m365 spo feature listLists Features activated in the specified site or site collection
m365 spo term set getGets information about the specified taxonomy term set
m365 spo sitedesign task getGets information about the specified site design scheduled for execution
m365 spo sitescript getGets information about the specified site script
m365 spo roledefinition listGets list of role definitions for the specified site
m365 spo externaluser listLists external users in the tenant
m365 spo cdn origin listList CDN origins settings for the current SharePoint Online tenant
m365 spo list webhook getGets information about the specific webhook
m365 spo group member listList the members of a SharePoint Group
m365 spo tenant applicationcustomizer getGet an application customizer that is installed tenant wide
m365 spo navigation node listLists nodes from the specified site navigation
m365 spo theme getGets custom theme information
m365 spo file listGets all files within the specified folder and site
m365 spo site appcatalog listList all site collection app catalogs within the tenant
m365 spo folder getGets information about the specified folder
m365 spo cdn getView current status of the specified Microsoft 365 CDN

The SPFx Toolkit Language Model Tools provide a set of skills may be used by GitHub Copilot in agent mode to assist you in your SharePoint Framework development tasks and managing your SharePoint Online tenant.

Language Model Tools

Language model tools may only be used in agent mode, which is available in the GitHub Copilot chat extension. Currently it allows you to do basic operations to manage your SharePoint Online tenant like getting information about specific site, creating and removing a site, listing apps from your tenant app catalog, installing an app, creating a page, etc. In order to use the tool you may #hashtag mention it, otherwise if your prompt will be well defined then GitHub Copilot should figure out which tool should be used to proceed with the task.

Language Model Tools in Action