drive_read_text
Extract text from Google Drive files including PDFs, documents, slides, sheets, and plain text; select download or viewer mode to retrieve content locally.
Instructions
Read the text of a file (PDF pages, document, slides, sheets, plain text).
'download' downloads/exports the file and extracts its text on this computer (nothing is left on the phone); 'viewer' opens it in Drive's viewer and reads the text it exposes; 'auto' tries download, then the viewer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Exact item name in the current location. | |
| path | No | Folder holding the item ("/A/B" from My Drive, "A/B" relative); default: the location of the last listing. | |
| index | No | Index from the last drive.list / drive.search. | |
| method | No | auto, download or viewer. | auto |
| max_chars | No | Truncate the returned text to this many characters. | |
| max_pages | No | Max pages/slides/sheets to read. | |
| occurrence | No | Which item when several share the name (0 = first). |