sharepoint-api
SharePoint/OneDrive API Automation
Automate SharePoint and OneDrive for Business operations using agent-browser with SharePoint REST APIs. Execute authenticated API calls from JavaScript within a browser context, avoiding OAuth token management while gaining full access to SharePoint's RenderListDataAsStream, Graph API (SharePoint-hosted), and direct file operations.
Why This Approach
API over browser automation → 10-100x faster, reliable, structured data, composable with jq/other tools.
agent-browser for authentication → Inherits session cookies from authenticated browser profile, no OAuth flow required.
Works across tenant types → Commercial, GCC, GCC High with URL configuration only.
⚠️ Critical: Browser JavaScript Context
agent-browser executes JavaScript in Chromium browser, NOT Node.js.
Browser JavaScript does NOT have process.env. All scripts use bash template substitution to pass variables.