Skip to content

Workflows

Curate SharePoint Content For Agent Use

  1. Scan or analyze the relevant SharePoint folder or file
  2. Decide whether the result is worth durable retention for agent context
  3. Save only the derived artifact that improves retrieval or understanding
  4. Keep the authoritative source document in SharePoint
  5. Avoid using Git as a bulk document mirror

List Available SharePoint Sites

  1. Run python scripts/scan-sharepoint-graph.py --list-sites
  2. Authenticate in the browser if needed
  3. Review the returned site list

Scan A Shared Folder

  1. Run python scripts/scan-sharepoint-graph.py "<sharepoint-folder-url>"
  2. Let the tool resolve the shared link and enumerate the contents

Analyze A File

  1. Run python scripts/scan-sharepoint-graph.py "<sharepoint-file-url>" --analyze-file
  2. Optionally save output with -o analyses/<name>.json

Clean Workspace Session Files

  1. Run python scripts/scan-sharepoint-graph.py --cleanup-session
  2. Confirm cached files under d:/github/.sharepoint-session/ are no longer needed