vscode-viva
vscode-viva copied to clipboard
๐ก [Epic]: Rework and add more SPO list management LM Tools
๐ฏ 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_spo_list (refactor spo_list_add) - Add support for options:
- Add new LM tools to support SharePoint list operations
- [ ] list_spo_list - Under the hood uses https://pnp.github.io/cli-microsoft365/cmd/spo/list/list-list
- [ ] update_spo_list - Under the hood uses https://pnp.github.io/cli-microsoft365/cmd/spo/list/list-set and updates the same properties as add_spo_list tool
๐ท 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