11---
2- title : Sharepoint
2+ title : SharePoint
33description : Work with pages and lists
44---
55
66import { BlockInfoCard } from " @/components/ui/block-info-card"
77
88<BlockInfoCard
9- type = " sharepoint "
9+ type = " sharepoint_v2 "
1010 color = " #E0E0E0"
1111/>
1212
@@ -73,6 +73,7 @@ Read a specific page from a SharePoint site
7373| ` pageId ` | string | No | The ID of the page to read. Example: a GUID like 12345678-1234-1234-1234-123456789012 |
7474| ` pageName ` | string | No | The name of the page to read \( alternative to pageId\) . Example: Home.aspx or About-Us.aspx |
7575| ` maxPages ` | number | No | Maximum number of pages to return when listing all pages \( default: 10, max: 50\) |
76+ | ` nextPageUrl ` | string | No | Full @odata .nextLink URL from a previous Microsoft Graph page response |
7677
7778#### Output
7879
@@ -84,6 +85,7 @@ Read a specific page from a SharePoint site
8485| ↳ ` title ` | string | The title of the page |
8586| ↳ ` webUrl ` | string | The URL to access the page |
8687| ↳ ` pageLayout ` | string | The layout type of the page |
88+ | ↳ ` description ` | string | The description of the page |
8789| ↳ ` createdDateTime ` | string | When the page was created |
8890| ↳ ` lastModifiedDateTime ` | string | When the page was last modified |
8991| ` pages ` | array | List of SharePoint pages |
@@ -93,6 +95,7 @@ Read a specific page from a SharePoint site
9395| ↳ ` title ` | string | The title of the page |
9496| ↳ ` webUrl ` | string | The URL to access the page |
9597| ↳ ` pageLayout ` | string | The layout type of the page |
98+ | ↳ ` description ` | string | The description of the page |
9699| ↳ ` createdDateTime ` | string | When the page was created |
97100| ↳ ` lastModifiedDateTime ` | string | When the page was last modified |
98101| ↳ ` content ` | object | content output from the tool |
@@ -102,6 +105,7 @@ Read a specific page from a SharePoint site
102105| ↳ ` content ` | string | Extracted text content from the page |
103106| ↳ ` canvasLayout ` | object | Raw SharePoint canvas layout structure |
104107| ` totalPages ` | number | Total number of pages found |
108+ | ` nextPageUrl ` | string | Full Microsoft Graph @odata .nextLink URL for the next page of results |
105109
106110### ` sharepoint_list_sites `
107111
@@ -112,7 +116,9 @@ List details of all SharePoint sites
112116| Parameter | Type | Required | Description |
113117| --------- | ---- | -------- | ----------- |
114118| ` siteSelector ` | string | No | Select the SharePoint site |
119+ | ` siteId ` | string | No | The ID of the SharePoint site \( internal use\) |
115120| ` groupId ` | string | No | The group ID for accessing a group team site. Example: a GUID like 12345678-1234-1234-1234-123456789012 |
121+ | ` nextPageUrl ` | string | No | Full @odata .nextLink URL from a previous Microsoft Graph page response |
116122
117123#### Output
118124
@@ -139,6 +145,7 @@ List details of all SharePoint sites
139145| ↳ ` description ` | string | The description of the site |
140146| ↳ ` createdDateTime ` | string | When the site was created |
141147| ↳ ` lastModifiedDateTime ` | string | When the site was last modified |
148+ | ` nextPageUrl ` | string | Full Microsoft Graph @odata .nextLink URL for the next page of results |
142149
143150### ` sharepoint_create_list `
144151
@@ -153,7 +160,7 @@ Create a new list in a SharePoint site
153160| ` listDisplayName ` | string | Yes | Display name of the list to create. Example: Project Tasks or Customer Contacts |
154161| ` listDescription ` | string | No | Description of the list |
155162| ` listTemplate ` | string | No | List template name \( e.g., 'genericList'\) |
156- | ` pageContent ` | string | No | Optional JSON of columns. Either a top-level array of column definitions or an object with \{ columns: \[ ...\] \} . |
163+ | ` pageContent ` | json | No | Optional JSON of columns. Either a top-level array of column definitions or an object with \{ columns: \[ ...\] \} . |
157164
158165#### Output
159166
@@ -179,6 +186,9 @@ Get metadata (and optionally columns/items) for a SharePoint list
179186| ` siteSelector ` | string | No | Select the SharePoint site |
180187| ` siteId ` | string | No | The ID of the SharePoint site \( internal use\) |
181188| ` listId ` | string | No | The ID of the list to retrieve. Example: b!abc123def456 or a GUID like 12345678-1234-1234-1234-123456789012 |
189+ | ` includeColumns ` | boolean | No | Whether to include column definitions when retrieving a specific list |
190+ | ` includeItems ` | boolean | No | Whether to include list items when retrieving a specific list |
191+ | ` nextPageUrl ` | string | No | Full @odata .nextLink URL from a previous Microsoft Graph page response |
182192
183193#### Output
184194
@@ -194,6 +204,10 @@ Get metadata (and optionally columns/items) for a SharePoint list
194204| ↳ ` list ` | object | List properties \( e.g., template\) |
195205| ↳ ` columns ` | array | List column definitions |
196206| ` lists ` | array | All lists in the site when no listId/title provided |
207+ | ` items ` | array | List items with expanded fields when reading list items |
208+ | ↳ ` id ` | string | Item ID |
209+ | ↳ ` fields ` | object | Field values for the item |
210+ | ` nextPageUrl ` | string | Full Microsoft Graph @odata .nextLink URL for the next page of results |
197211
198212### ` sharepoint_update_list `
199213
@@ -205,9 +219,9 @@ Update the properties (fields) on a SharePoint list item
205219| --------- | ---- | -------- | ----------- |
206220| ` siteSelector ` | string | No | Select the SharePoint site |
207221| ` siteId ` | string | No | The ID of the SharePoint site \( internal use\) |
208- | ` listId ` | string | No | The ID of the list containing the item. Example: b!abc123def456 or a GUID like 12345678-1234-1234-1234-123456789012 |
222+ | ` listId ` | string | Yes | The ID of the list containing the item. Example: b!abc123def456 or a GUID like 12345678-1234-1234-1234-123456789012 |
209223| ` itemId ` | string | Yes | The ID of the list item to update. Example: 1, 42, or 123 |
210- | ` listItemFields ` | object | Yes | Field values to update on the list item |
224+ | ` listItemFields ` | json | Yes | Field values to update on the list item |
211225
212226#### Output
213227
@@ -228,7 +242,7 @@ Add a new item to a SharePoint list
228242| ` siteSelector ` | string | No | Select the SharePoint site |
229243| ` siteId ` | string | No | The ID of the SharePoint site \( internal use\) |
230244| ` listId ` | string | Yes | The ID of the list to add the item to. Example: b!abc123def456 or a GUID like 12345678-1234-1234-1234-123456789012 |
231- | ` listItemFields ` | object | Yes | Field values for the new list item |
245+ | ` listItemFields ` | json | Yes | Field values for the new list item |
232246
233247#### Output
234248
@@ -250,7 +264,7 @@ Upload files to a SharePoint document library
250264| ` driveId ` | string | No | The ID of the document library \( drive\) . If not provided, uses default drive. Example: b!abc123def456 |
251265| ` folderPath ` | string | No | Optional folder path within the document library. Example: /Documents/Subfolder or /Shared Documents/Reports |
252266| ` fileName ` | string | No | Optional: override the uploaded file name. Example: report-2024.pdf |
253- | ` files ` | file[ ] | No | Files to upload to SharePoint |
267+ | ` files ` | file[ ] | Yes | Files to upload to SharePoint |
254268
255269#### Output
256270
0 commit comments