Skip to main content
Glama

read_file

Extract text content from DOCX or Google Docs files with pagination support for large documents. Output includes formatting tags and supports multiple formats like JSON or plain text.

Instructions

Read document content (DOCX or Google Doc). Output is token-limited (~14k tokens) by default with pagination metadata (has_more, next_offset). Use offset/limit to paginate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathNoPath to the DOCX file.
google_doc_idNoGoogle Doc ID or URL (alternative to file_path). Extract from URL: docs.google.com/document/d/{ID}/edit
offsetNo1-based paragraph offset for pagination. Negative values count from end.
limitNoMax paragraphs to return. When omitted, output is token-limited to ~14k tokens with pagination.
node_idsNo
formatNo
show_formattingNoWhen true (default), shows inline formatting tags (<b>, <i>, <u>, <highlighting>, <a>). When false, emits plain text with no inline tags.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/UseJunior/safe-docx'

If you have feedback or need assistance with the MCP directory API, please join our Discord server