read-doc
Read and analyze PDF, DOCX, Excel, and PowerPoint files. Choose summary, in-depth, or focused mode to extract text, structure, and metadata from local or remote sources.
Instructions
Read and analyze PDF, DOCX, Excel, or PowerPoint (.pptx) files. Modes: 'summary' (overview with preview), 'indepth' (full text, structure, metadata), 'focused' (query-based search). For a .pptx it returns a per-slide transcript (titles, bullets, speaker notes) and the slide count. Source: either local filePath OR a remote https url whose response is {data:base64, filename, mimeType, size} JSON guarded by authHeader (used for one-shot capabilities like CogniRunner attachment fetches). Always read before editing; use 'indepth' before edit-doc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | HTTPS URL whose response is {data:base64, filename, mimeType, size} JSON. Use this OR filePath. | |
| mode | No | Read mode (default: summary) | |
| context | No | Context from previous questions. Only used with mode 'focused'. | |
| filePath | No | Local file path. Use this OR url+authHeader. | |
| filename | No | Optional filename hint used for the temp-file extension when the response omits one. | |
| userQuery | No | Query for focused analysis. Only used with mode 'focused'. | |
| authHeader | No | Authorization header value (e.g. 'Bearer abc123'). Required when url is set. |