googledocs

Get document plain text

TOOL
Slug
GOOGLEDOCS_GET_DOCUMENT_PLAINTEXT
Version
20261008_00
Toolkit
googledocs
Retrieve a Google Doc by ID and return a best-effort plain-text rendering. Converts document structure into plain text including paragraphs, lists, and tables without requiring clients to traverse complex Docs API JSON.
tab_ids
ARRAY<STRING>
Optional tab IDs to include when include_tabs_content=true. Nested child tabs are searched recursively.
document_idrequired
STRING
The unique identifier for the Google Document. Accepts either a document ID (typically a 44-character alphanumeric string) or a full Google Docs URL. When a URL is provided, the document ID will be automatically extracted. Note: This parameter also accepts 'id' as an alias for consistency with other GOOGLEDOCS tools.
include_tables
BOOLEAN
Whether to include table content in the plain text output. Tables are rendered with configurable cell and row delimiters.
Default: true
include_footers
BOOLEAN
Whether to include footer text in the plain text output. Footers are appended with a clear section separator.
Default: false
include_headers
BOOLEAN
Whether to include header text in the plain text output. Headers are appended with a clear section separator.
Default: false
include_footnotes
BOOLEAN
Whether to include footnote text in the plain text output. Footnotes are appended with a clear section separator.
Default: false
table_row_delimiter
STRING
The delimiter to use between table rows (default: newline character).
Default: "\n"
include_tabs_content
BOOLEAN
When true, fetch the document using includeTabsContent=true query parameter to render all tabs. When false, only the main body content is rendered.
Default: false
table_cell_delimiter
STRING
The delimiter to use between table cells (default: tab character).
Default: "\t"