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

๐Ÿ’ก [Epic]: Rework and add more SPO list management LM Tools

Open Adam-it opened this issue 8 months ago โ€ข 0 comments

๐ŸŽฏ Aim of the feature

Currently, the LM Tools for SPO lists provide only basic operations to add, remove, or get lists on a SharePoint site. The goal is to refactor existing tools, align with naming conventions, improve model descriptions, and add new tools to provide more complete list management capabilities.

โœ… The Plan

To achieve this, we need to:

  • Align tool naming with {verb}_{noun} convention.
  • improve model description following the guidance to cover:
    • What exactly does the tool do?
    • What kind of information does it return?
    • When should and shouldn't it be used?
    • Describe important limitations or constraints of the tool.
  • Refactor existing tools
    • [ ] add_spo_list (refactor spo_list_add) - Add support for options: allowDeletion, contentTypesEnabled, disableCommenting, disableGridEditing, draftVersionVisibility, enableFolderCreation, enableMinorVersions, enableVersioning, forceCheckout, hidden, noCrawl
    • [ ] get_spo_list (refactor spo_list_get) - Add support for withPermissions
    • [ ] remove_spo_list (refactor spo_list_remove) - Add support for recycle
  • Add new LM tools to support SharePoint list operations

๐Ÿ“ท Images (if possible) with expected result

No response

๐Ÿค” Additional remarks or comments

VS Code LM docs: https://code.visualstudio.com/api/extension-guides/tools

Lets use the following commands under the hood:

  • https://pnp.github.io/cli-microsoft365/cmd/spo/list/list-add
  • https://pnp.github.io/cli-microsoft365/cmd/spo/list/list-set
  • https://pnp.github.io/cli-microsoft365/cmd/spo/list/list-remove
  • https://pnp.github.io/cli-microsoft365/cmd/spo/list/list-list
  • https://pnp.github.io/cli-microsoft365/cmd/spo/list/list-get

Adam-it avatar May 16 '25 08:05 Adam-it