Skip to content

๐Ÿž Bug report: list_spo_page LM tool doesn't return complete dataย #701

@Saurabh7019

Description

@Saurabh7019

โญ Priority

(Low)โ˜น๏ธ Something is a little off

๐Ÿ“ 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

  1. Use a SharePoint site with multiple modern pages (e.g., create a new communication site using the OOB Department template).
  2. Verify the total pages using the CLI for Microsoft 365 command: m365 spo page list --webUrl <site-url>
  3. Ensure all pages are returned.
  4. Next, use the #SharePointPageList LM tool to list the pages.
  5. 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

Image

โ“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.

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions