-
Notifications
You must be signed in to change notification settings - Fork 26
Labels
๐ bugSomething isn't workingSomething isn't working๐จโ๐ปwork in progressI am working on itI am working on it
Milestone
Description
โญ Priority
(Low)
๐ Describe the bug
The list_spo_page language model tool is returning incomplete results when listing SharePoint pages. In most cases, not all pages from the underlying CLI for M365 command are displayed, even though the CLI itself returns the full set of pages.
๐ฃ Steps To Reproduce
- Use a SharePoint site with multiple modern pages (e.g., create a new communication site using the OOB Department template).
- Verify the total pages using the CLI for Microsoft 365 command:
m365 spo page list --webUrl <site-url> - Ensure all pages are returned.
- Next, use the #SharePointPageList LM tool to list the pages.
- Compare the results with the CLI output
๐ Expected behavior
list_spo_page LM tool should return correct response. Number of pages, and then a summary.
๐ท Screenshots
โSharePoint Framework Toolkit version
4.16.4
โNode.js version
24.12.0
๐ค Additional context
The issue seems to be the with the large JSON (especially CanvasContent1 field) that causes the entire response to exceed the token limits and the LM then truncates the response.
The solution could be to parse the JSON response from CLI command stdout and extract only relevant fields.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
๐ bugSomething isn't workingSomething isn't working๐จโ๐ปwork in progressI am working on itI am working on it