Thanks, so let me know if I have made the correct changes, as it still cannot find any files or folders.
Also doing some tweaks to the prompts and instructions so an interesting balancing act it seems.
{
“openapi”: “3.0.0”,
“info”: {
“title”: “GPT Google Drive Document Processing”,
“version”: “1.0.0”
},
“servers”: [
{
“url”: “…/drive/v3”,
“description”: “Google Drive API server”
}
],
“paths”: {
“/files”: {
“get”: {
“summary”: “List files in a specific Google Drive folder”,
“operationId”: “listFilesInSpecificFolder”,
“parameters”: [
{
“name”: “q”,
“in”: “query”,
“required”: true,
“schema”: {
“type”: “string”,
“default”: “‘DRIVE ID GOES HERE’ in parents”,
“description”: “Query string to list files within the specified folder. Ensure the value is URL-encoded when sent in the request.”
}
},
{
“name”: “supportsAllDrives”,
“in”: “query”,
“required”: false,
“schema”: {
“type”: “boolean”,
“default”: true,
“description”: “Parameter indicating that all drives should be included in the search.”
}
},
{
“name”: “includeItemsFromAllDrives”,
“in”: “query”,
“required”: false,
“schema”: {
“type”: “boolean”,
“default”: true,
“description”: “Parameter indicating that items from all drives should be included in the response.”
}
}
],
“responses”: {
“200”: {
“description”: “A list of files in the specified folder”,
“content”: {
“application/json”: {
“schema”: {
“type”: “object”,
“properties”: {
“files”: {
“type”: “array”,
“items”: {
“$ref”: “#/components/schemas/File”
}
}
}
}
}
}
}
}
}
}
},
“components”: {
“schemas”: {
“File”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“name”: {
“type”: “string”
},
“mimeType”: {
“type”: “string”
}
}
}
},
“securitySchemes”: {
“OAuth2”: {
“type”: “oauth2”,
“flows”: {
“authorizationCode”: {
“authorizationUrl”: “…/auth”,
“tokenUrl”: “…/token”,
“scopes”: {
“…drive.file”: “Access to file metadata and file content.”
}
}
}
}
}
},
“security”: [
{
“OAuth2”:
}
]
}