> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# documents_get

> Read a document's full structural content. The document ID is the long string in its URL, between '/d/' and '/edit'. Pass include_tabs_content=true for a document with several tabs, since the default response covers only the first.

<div className="tool-route"><span className="tool-row-method" data-method="GET">GET</span><code>{"https://docs.googleapis.com/v1/documents/{documentId}"}</code></div>

```python gdocs_documents_get.py theme={null}
from charter.packs import gdocs

result = await gdocs.documents_get.ainvoke({"documentId": ...})
```

<Note>
  Requires `https://www.googleapis.com/auth/documents`. Costs 1 against the provider's own quota.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                              | Type     | Description                                                                                                   |
  | ------------------------------------------------------------------ | -------- | ------------------------------------------------------------------------------------------------------------- |
  | `documentId` <span className="required" title="required">\*</span> | `string` | The ID of the document to retrieve. This is the long string in the document's URL, between `/d/` and `/edit`. |
</div>

## Query parameters

<div className="reference-table">
  | Field                 | Type                                                                    | Description                                                                                                                                                                                    |
  | --------------------- | ----------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `suggestionsViewMode` | [SuggestionsViewMode](/charter/charter/packs/gdocs/objects#suggestionsviewmode) | How to render suggested edits. Defaults to DEFAULT\_FOR\_CURRENT\_ACCESS, which shows suggestions inline if the caller may see them.                                                           |
  | `includeTabsContent`  | `boolean`                                                               | When true, content is returned in the `tabs` field, covering every tab in the document. When false or omitted, only the first tab's content is returned, in the legacy top-level `body` field. |
</div>
