get_doc_content
Extracts and retrieves content from Google Docs or Drive files (e.g., .docx) using document_id. Fetches native Docs content via Docs API and extracts text from Office files via Drive API. Returns document content with metadata header.
Instructions
Retrieves content of a Google Doc or a Drive file (like .docx) identified by document_id.
- Native Google Docs: Fetches content via Docs API.
- Office files (.docx, etc.) stored in Drive: Downloads via Drive API and extracts text.
Returns:
str: The document content with metadata header.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
docs_service | Yes | ||
document_id | Yes | ||
drive_service | Yes | ||
user_google_email | Yes |
Input Schema (JSON Schema)
{
"properties": {
"docs_service": {
"title": "docs_service",
"type": "string"
},
"document_id": {
"title": "Document Id",
"type": "string"
},
"drive_service": {
"title": "drive_service",
"type": "string"
},
"user_google_email": {
"title": "User Google Email",
"type": "string"
}
},
"required": [
"drive_service",
"docs_service",
"user_google_email",
"document_id"
],
"title": "get_doc_contentArguments",
"type": "object"
}