Workflows¶
Curate SharePoint Content For Agent Use¶
- Scan or analyze the relevant SharePoint folder or file
- Decide whether the result is worth durable retention for agent context
- Save only the derived artifact that improves retrieval or understanding
- Keep the authoritative source document in SharePoint
- Avoid using Git as a bulk document mirror
List Available SharePoint Sites¶
- Run
python scripts/scan-sharepoint-graph.py --list-sites - Authenticate in the browser if needed
- Review the returned site list
Scan A Shared Folder¶
- Run
python scripts/scan-sharepoint-graph.py "<sharepoint-folder-url>" - Let the tool resolve the shared link and enumerate the contents
Analyze A File¶
- Run
python scripts/scan-sharepoint-graph.py "<sharepoint-file-url>" --analyze-file - Optionally save output with
-o analyses/<name>.json
Clean Workspace Session Files¶
- Run
python scripts/scan-sharepoint-graph.py --cleanup-session - Confirm cached files under
d:/github/.sharepoint-session/are no longer needed