oauth_authorize
Handle OAuth 2.0 authorization for secure user-delegated access to OneDrive and SharePoint files by managing tokens and authorization flows.
Instructions
Manage OAuth 2.0 authorization for user-delegated access to OneDrive and SharePoint files with secure token handling.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "oauth_authorize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | OAuth action: get authorization URL, exchange code for token, refresh token, or revoke access | |
| scopes | No | OAuth scopes to request (e.g., Files.ReadWrite, Sites.ReadWrite.All) | |
| state | No | State parameter for CSRF protection | |
| code | No | Authorization code to exchange for access token | |
| refreshToken | No | Refresh token to exchange for new access token |