docs_read
Read a Google Doc as markdown-style text (headings, lists, tables, links), with its title, revisionId, tabs, heading outline with indexes, and endIndex.
| Name | Type | Notes |
|---|---|---|
document required | string | Document ID, or its docs.google.com/document/d/<id>/… URL |
tab_id | string | Read one tab only; by default every tab is included |
max_chars | integer | default 50000 · 1000–500000 |
suggestions | string | How to show suggested edits; Google's default applies when omitted DEFAULT_FOR_CURRENT_ACCESSSUGGESTIONS_INLINEPREVIEW_SUGGESTIONS_ACCEPTEDPREVIEW_WITHOUT_SUGGESTIONS |
curl https://api.oneapiforagents.com/v1/call \
-H "Authorization: Bearer $ONEAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "gdocs",
"tool": "docs_read",
"input": {
"document": "https://docs.google.com/document/d/1AbCdEfGhIjKlMnOpQrStUvWxYz0123456789_-abc/edit"
}
}'{
"tool": "docs_read",
"arguments": {
"document": "https://docs.google.com/document/d/1AbCdEfGhIjKlMnOpQrStUvWxYz0123456789_-abc/edit"
}
}