get_doc_smart_chips
Extracts all smart chips from a Google Doc, including person mentions and rich links, returning their type, location, and properties for auditing mentions or validating links.
Instructions
Extract every smart chip in a Google Doc — person mentions and rich links.
Walks the document body, finds all person and richLink inline elements,
and returns their type, character range, and key properties. Useful for
auditing @mentions (who is referenced where), validating links to external
resources, or building a chip inventory before batch-editing. Does NOT
include inline hyperlinks that never upgraded to chips (use a direct text
scan for those).
Requires OAuth scope: https://www.googleapis.com/auth/documents.readonly
(or broader). Read-only — safe to call repeatedly.
Scope note: This inspects the main document body only. Chips inside
headers, footers, footnotes, or secondary tabs are not returned. Only
chips that have been rendered/saved by the Docs client appear here —
chips inserted programmatically via insert_doc_person_chip or
insert_doc_file_chip won't show up in this result until a user opens
the doc in the Docs UI and Docs upgrades the raw linked text into a chip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| document_id | Yes | Google Docs document ID (from the URL after `/document/d/`). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |